4. 在sh-proxy上试着运行#ssh jephe
[root@sh-proxy /root]# ssh jephe
Host key not found from the list of known hosts.
Are you sure you want to continue connecting (yes/no)? yes
Host 'jephe' added to the list of known hosts.
root@jephe's password:
然后你将发现在sh-proxy上的/root/.ssh/known_hosts中有一行象这样:
[root@sh-proxy .ssh]# more /root/.ssh/known_hosts
jephe 1024 33 109375014527852033162047553102075772652631881592234647764468396691255608762224657834
80298686537210688873174702050014769801616589285981388589754511598153852154126943077621683137008668
04259596243761543786791251880161497290889895171079590139873855983501306014667625589270725783274492
09005322534597695080345678
5. 你还需要编辑上面的文件,加第二行象这样(按yy,再p复制一行文本),也就是加
jephe机器的全称域名。
jephe 1024 33 109375014527852033162047553102075772652631881592234647764468396691255608762224657834
80298686537210688873174702050014769801616589285981388589754511598153852154126943077621683137008668
04259596243761543786791251880161497290889895171079590139873855983501306014667625589270725783274492
09005322534597695080350486293
jephe.yourdomainname.com 1024 33 1093750145278520331620475531020757726526318815922346477644683966912
55608762224657834802986865372106888731747020500147698016165892859813885897545115981538521541269430
77621683137008668042595962437615437867912518801614972908898951710795901398738559835013060146676255
8927072578327449209005322534597695080350486293
6. 至些,全部结束,你能从jephe上SSH/SCP sh-proxy不需要密码提示:
[root@jephe /root]# ssh sh-proxy
Last login: Sat Nov 6 00:53:13 1999 from jephe.yourdomainname.com
No mail.
[root@sh-proxy /root]#
7. 同样的方法,在jephe上设置允许sh-proxy上的root不需要密码可直接登录jephe.
8. 如有问题,你可以打开-v开关查错。如在机器jephe上 # ssh -v sh-proxy.