Skip to content

Instantly share code, notes, and snippets.

@ezequiel9
Created April 22, 2016 16:35
Show Gist options
  • Save ezequiel9/e533bcfb2efe1e4a5c32d913efcde58b to your computer and use it in GitHub Desktop.
Save ezequiel9/e533bcfb2efe1e4a5c32d913efcde58b to your computer and use it in GitHub Desktop.
Generar Claves Publicas en Ubuntu para usar Git con los repositorios
Generando tu clave pública SSH
PASO 1
$ cd ~/.ssh
$ ls
authorized_keys2 id_dsa known_hosts
config
PASO 2
$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/schacon/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/schacon/.ssh/id_rsa.
Your public key has been saved in /Users/schacon/.ssh/id_rsa.pub.
The key fingerprint is:
43:c5:5b:5f:b1:f1:50:43:ad:20:a6:92:6a:1f:9a:3a [email protected]
PASO 3
$ cat ~/.ssh/id_rsa.pub
PASO 4
Copiar la clave devuelta en el repo gitlab o bitbucket
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAklOUpkDHrfHY17SbrmTIpNLTGK9Tjom/BWDSU
GPl+nafzlHDTYW7hdI4yZ5ew18JH4JW9jbhUFrviQzM7xlELEVf4h9lFX5QVkbPppSwg0cda3
Pbv7kOdJ/MTyBlWXFCR+HAo3FXRitBqxiX1nKhXpHAZsMciLq8V6RjsNAQwdsdMFvSlVK/7XA
t3FaoJoAsncM1Q9x5+3V0Ww68/eIFmb1zuUFljQJKprrX88XypNDvjYNby6vw/Pb0rwert/En
mZ+AW4OZPnTPI89ZPmVMLuayrD2cE86Z/il8b+gw3r3+1nKatmIkjn2so1d01QraTlMqVSsbx
NrRFi9wrf+M7Q== [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment