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