首页 > 其他 > 详细

ssh a host without input the password

时间:2014-06-18 19:26:21      阅读:334      评论:0      收藏:0      [点我收藏+]

 


$ vim /home/wangzheng/
.ssh/config Host 10.103.xx.xx HostName 10.103.xx.xx
User root 
Port 22022
$ ssh 10.103.xx.xx
The authenticity of host ‘[10.103.xx.xx]:22022 ‘ can‘t be established. RSA key fingerprint is xxxxx:7e. Are you sure you want to continue connecting (yes/no)? yes 
Warning: Permanently added ‘[10.103.xx.xx]:22022‘ (RSA) to the list of known hosts. root@10.103.xx.xx‘s password:

$ ssh-copy-id --help
Usage: /usr/bin/ssh-copy-id [-i [identity_file]] [user@]machine
$ ssh-copy-id 10.103.xx.xx
root@10.103.xx.xx‘s password:
Now try logging into the machine, with "ssh ‘10.103.xx.xx‘", and check in: ~/.ssh/authorized_keys to make sure we haven‘t added extra keys that you weren‘t expecting.
$ ssh 10.103.xx.xx
Last login: Mon Jun 16 10:51:35 2014 from 10.10.106.64 tty:[3] jobs:[0] cwd:[~] ip:[10.103.xx.xx]

ssh a host without input the password,布布扣,bubuko.com

ssh a host without input the password

原文:http://www.cnblogs.com/iwangzheng/p/3790652.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!