ssh-keygen+ssh-copy-id 在linux下实现ssh无密码登录访问

ingram@DN1:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/ingram/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/ingram/.ssh/id_rsa.
Your public key has been saved in /home/ingram/.ssh/id_rsa.pub.
The key fingerprint is:
38:a4:75:90:13:4c:48:6a:73:c4:bb:a7:bc:2f:2b:2c ingram@DN1
The key's randomart image is:
+--[ RSA 2048]----+
|   oo++o         |
|   oo +.         |
|  + ..o..        |
| . o.+ o         |
|    ..o S        |
|    . ..         |
| . . o           |
|E o +            |
| . .o=.          |

+-----------------+


ssh-copy-id -i /ingram/.ssh/id_rsa.pub ingram@dn2

你可能感兴趣的:(ssh-keygen+ssh-copy-id 在linux下实现ssh无密码登录访问)