您的位置:首页 > 其它

ubuntu ssh无密钥登陆

2014-04-25 13:57 169 查看
1.ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/root/.ssh/id_rsa): 

Enter passphrase (empty for no passphrase): 

Enter same passphrase again: 

Your identification has been saved in /root/.ssh/id_rsa.

Your public key has been saved in /root/.ssh/id_rsa.pub.

The key fingerprint is:

bb:e6:a8:89:1c:2f:79:71:68:6d:42:1a:9c:29:f4:18 root@cao-work

The key's randomart image is:

+--[ RSA 2048]----+

|                 |

| E               |

|..+o             |

|..=..            |

| . + o  S        |

|  . = +  .       |

|  .o =  .        |

| .o+.. ...       |

|  oo+..oo        |

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

2.scp /root/.ssh/id_rsa.pub root@192.168.0.49:/root/.ssh/authorized_keys

3.ssh root@192.168.0.49
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: