LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 672|回复: 3

求教:ssh 的问题

[复制链接]
发表于 2004-9-27 17:12:43 | 显示全部楼层 |阅读模式
两台机器互相ssh登陆,一台机器总是close掉访问,对方或者自己都不能ssh登陆自己.
用-v 查看,到ssh2_MSG_KEXINIT sent 之后就没反映了,没有receive.之后就clean了.
哪位大侠知道应该怎么解决?帮帮忙!

:thank
发表于 2004-9-27 17:36:09 | 显示全部楼层
你的配置文件?
发表于 2004-9-27 20:43:20 | 显示全部楼层
SSH Frequently Asked Questions
My SSH client connects, but the server seems to immediately close the connection. I get "connection closed" or "connection lost," or with OpenSSH:
ssh_exchange_identification: Connection closed by remote host

---------------------------------------------------------------------
This message means that the client got a TCP connection to the server, but the server immediately closed it before the SSH protocol could get started (the ssh_exchange_identification routine implements the version string exchange, the initial step of the protocol).
This usually happens because of a libwrap setting which prohibits the connection. Check the server log; if this is the problem, you will see messages like these:

SSH1, OpenSSH sshd1[15092]: refused connect from 192.168.10.1
SSH2 sshd2[15085]: Denied connection from by 192.168.10.1 tcp wrappers.
If you compiled the SSH server with libwrap (TCP-wrappers) support, check that the rules in the files /etc/hosts.{allow,deny} on the server host allow connection to the SSH daemon. An entry like this, for example, will allow connections to sshd from any source address:

sshd sshd1 sshd2 : ALL : ALLOW

The name on the left must be the argv[0] value of the running daemon, so if you've invoked sshd under another name, you'll need to use that. Also, the rules are order-dependent, so the rule just given might not work, depending on the other rules and their relative placement. See the hosts_access(5) man page for details on the libwrap rule syntax and semantics.
发表于 2004-9-27 20:47:30 | 显示全部楼层
推荐~关于ssh的一个站点 http://www.snailbook.com
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表