]]>scp password not required any morehttp://www.aygfsteel.com/Angi/articles/342822.htmlAngi WangAngi WangWed, 12 Jan 2011 02:37:00 GMThttp://www.aygfsteel.com/Angi/articles/342822.htmlhttp://www.aygfsteel.com/Angi/comments/342822.htmlhttp://www.aygfsteel.com/Angi/articles/342822.html#Feedback0http://www.aygfsteel.com/Angi/comments/commentRss/342822.htmlhttp://www.aygfsteel.com/Angi/services/trackbacks/342822.html濡備笅鎿嶄綔鍙互浣挎湰鍦伴氳繃scp浼犺緭鏂囦歡鍒?92.168.1.180鏃朵笉鐢ㄨ緭鍏ュ瘑鐮併?br />
[root@localhost ~]#
ssh-keygen -b 1024 -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:
0e:30:f8:e8:18:4b:a2:e5:47:de:89:f5:5b:88:b5:25 root@localhost.localdomain
[root@localhost
~]# scp .ssh/id_rsa.pub root@192.168.1.180:/root/.ssh/authorized_keys root@192.168.1.180's
password:
id_rsa.pub
100% 236 0.2KB/s 00:00
[root@localhost ~]# scp /opt/log/oss.log root@192.168.1.180:/root
oss.log
100% 40KB 40.1KB/s 00:00
[root@localhost ~]#