| 关键词: nbsp 192.168 公钥 ssh 登录 rsa 0.10 id pub keys |
1、架构 192.168.0.5 登录机。 192.168.0.10 被登录机。 2、执行步骤 (1)在192.168.0.5上执行 #ssh-keygen -t rsa 一路回车 在~/.ssh/目录下生一对公钥和私钥id_rsa id_rsa.pub (2)把公钥id_rsa.pub拷贝到远程登录机上 #ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected] 输入密码 10 Now try logging into the machine, with "ssh '[email protected]", and check in: .ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. 成功! |
|
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系
[邮箱地址] 删除
|