ssh和rsh的配置
时间:2010-10-13 来源:Jessica Lu
ssh:
From source server ( eg. sparc00), sparc03 is the target server which need to be accessed from sparc00 by ssh:
#ssh-keygen -t rsa
[a few ENTERs]
#scp .ssh/id_rsa.pub sparc03:/
#ssh sparc03
#cat /id_rsa.pub >>/.ssh/authorized_keys
rsh:
if you want to connect sparc03 from sparc00), run the command from sparc03:
#vi /.rhosts
[Add “sparc00” in the file and save it]
#vi /etc/hosts
[Add “10.200.52.149 sparc00 sparc00.dcmg.cdc.veritas.com” to the file and save it]
当ssh到其他机器的时候,出现这样一个错误:
[root@sparc05:]# ssh sparc02
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
91:5d:4f:58:80:be:29:b5:b0:df:04:d7:24:46:b4:62.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /.ssh/known_hosts:2
RSA host key for sparc02 has changed and you have requested strict checking.
Host key verification failed.
这时把/.ssh/known_hosts里的sparc02的相关信息去掉就可以了。
From source server ( eg. sparc00), sparc03 is the target server which need to be accessed from sparc00 by ssh:
#ssh-keygen -t rsa
[a few ENTERs]
#scp .ssh/id_rsa.pub sparc03:/
#ssh sparc03
#cat /id_rsa.pub >>/.ssh/authorized_keys
rsh:
if you want to connect sparc03 from sparc00), run the command from sparc03:
#vi /.rhosts
[Add “sparc00” in the file and save it]
#vi /etc/hosts
[Add “10.200.52.149 sparc00 sparc00.dcmg.cdc.veritas.com” to the file and save it]
当ssh到其他机器的时候,出现这样一个错误:
[root@sparc05:]# ssh sparc02
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
91:5d:4f:58:80:be:29:b5:b0:df:04:d7:24:46:b4:62.
Please contact your system administrator.
Add correct host key in /.ssh/known_hosts to get rid of this message.
Offending key in /.ssh/known_hosts:2
RSA host key for sparc02 has changed and you have requested strict checking.
Host key verification failed.
这时把/.ssh/known_hosts里的sparc02的相关信息去掉就可以了。
相关阅读 更多 +