Skip to content

Instantly share code, notes, and snippets.

@waltervargas
Last active August 29, 2015 14:06
Show Gist options
  • Save waltervargas/f02a60fdc139081c76b2 to your computer and use it in GitHub Desktop.
Save waltervargas/f02a60fdc139081c76b2 to your computer and use it in GitHub Desktop.
ssh key how to

Gen ssh key

Generate ssh key

$ ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa): ENTER 
Enter passphrase (empty for no passphrase):  PASSWORD
Enter same passphrase again:  PASSWORD
Your identification has been saved in /home/user/.ssh/id_rsa. 
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
ee:d3:b2:cb:d7:4a:2e:df:73:b2:38:27:c0:8d:cd:31 user@equipo
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|                 |
|          E      |
|       .S= o     |
|       .+ +      |
|        .o..     |
|       o+o=o= .  |
|        =O==o=   |
+-----------------+
$ cat /home/user/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment