- Ejecutar en la terminal
ssh-keygen
- Aparecerá un mensaje para ingresar la ubicación donde se guardará la llave pública y privada,si se presiona enter, se guardará en
/home/user/.ssh/id_rsa
- Para obtener la llave y usarlo en github o alguna plataforma que lo permita, ejecutar
cat .ssh/id_rsa.pub
- Pegar el contenido generado
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
"log" | |
"fmt" | |
) | |
func main() { | |
http.HandleFunc("/", func (w http.ResponseWriter,r *http.Request){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net/http" | |
) | |
func main(){ | |
http.ListenAndServe("localhost:3000",nil) | |
} |
NewerOlder