[ahao.mah@jiangyi02.sqa.zmf /home/ahao.mah]
$ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ahao.mah/.ssh/id_rsa):
/home/ahao.mah/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/ahao.mah/.ssh/id_rsa.
Your public key has been saved in /home/ahao.mah/.ssh/id_rsa.pub.
The key fingerprint is:
e1:52:86:6e:76:10:84:35:38:ef:53:ca:dd:5d:37:a8 ahao.mah@jiangyi02.sqa.zmf
The key's randomart image is:
+--[ RSA 2048]----+
| == |
| + + |
| oo + . |
| ..=.. ....|
| o=+S. ... ..|
| o=o. .E. |
| . |
| |
| |
+-----------------+
[ahao.mah@jiangyi01.sqa.zmf /home/ahao.mah]
$scp /home/ahao.mah/.ssh/id_rsa.pub ahao.mah@jiangyi02.sqa.zmf:~/.ssh/authorized_keys
ahao.mah@10.137.16.6's password:
id_rsa.pub 100% 408 0.4KB/s 00:00