centos6.5:/root#ssh 192.168.11.181 date
The authenticity of host '192.168.11.181 (192.168.11.181)' can't be established.
RSA key fingerprint is 09:8e:2d:8a:d3:47:35:38:b4:a3:d4:ba:0f:d0:e3:81.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.11.181' (RSA) to the list of known hosts.
root@192.168.11.181's password:
centos6.5:/root#ssh 192.168.11.181 hostname
root@192.168.11.181's password:
ssh-keygen -t rsa ##生成公钥
centos6.5:/root/.ssh#ls
id_rsa id_rsa.pub
cat *.pub >authorized_keys
拷贝公钥要远程机器
scp authorized_keys 192.168.11.181:/root/.ssh
centos6.5:/root/.ssh# cat *.pub >authorized_keys
centos6.5:/root/.ssh#scp authorized_keys 192.168.11.181:/root/.ssh
root@192.168.11.181's password:
authorized_keys
ssh 认证
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
SSH服务-密钥认证
ssh 密钥认证
ssh 密钥认证 交互式 非交互式