发新话题
打印

[转载]ssh自动登陆远程主机在shell script中如何实现

[转载]ssh自动登陆远程主机在shell script中如何实现

信息来源:Linux伊甸园论坛


在serverA上:
#ssh-keygen -t rsa
#ls /root/.ssh
id_rsa id_rsa.pub known_hosts
#scp id_rsa.pub serverB:/root/.ssh/authorized_keys
益友网吧联盟  http://www.96-7.com

TOP

发新话题