1.首先 linux 上要安装 yuminstall openssh-server 然后root cd ~ 然后 chkonfig–level 35 sshd (这个是保证linux 重启后自动开启sshd 服务)临时测试 直接servicesshd restart
2.windos 下可以使用setupssh381-20040709ssh 客户端 连接时
ssh192.168.0.2 -l root 提示输入 要访问的linux主机root 密码
如果断开后再次连接可能会出现 known_hosts 错误就把提示下文件删除就OK了
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
4e:9b:3e:a5:58:82:68:9f:82:03:72:78:c8:71:27:32.
Please contact your system administrator.
Add correct host key in /cygdrive/c/Users/Administrator/.ssh/known_hosts to get
rid of this message.
Offending key in /cygdrive/c/Users/Administrator/.ssh/known_hosts:1
RSA host key for 192.173.173.178 has changed and you have requested strict check
ing.
Host key verification failed.
3.尽量不要修改linux 主机的语言编码环境。(有些乱码同学们喜欢修改,建议直接英文环境)
Linux 下同样会出现此问题,删除对应文件即可。
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
53:5f:77:85:49:d4:6d:fe:2f:d0:3c:a7:c9:2c:42:0b.
Please contact your system administrator.
Add correct host key in /home/myworld/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/myworld/.ssh/known_hosts:1
ECDSA host key for 192.173.173.178 has changed and you have requested strict checking.
Host key verification failed.