码迷,mamicode.com
首页 > 其他好文 > 详细

ssh a host without input the password

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

标签:class   ext   2014   os   cti   name   

 


$ 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

标签:class   ext   2014   os   cti   name   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!