Is the sshd server running? Set to accept nonlocal connections (check /etc/sshd/sshd_config)? Do you have a local firewall (iptables) blocking it? If you're trying to go through a router of some sort, does the router have a firewall blocking it?
By default, the OpenSSH server logs to the AUTH facility of syslog, All the details of ssh login attempts will be saved in your /var/log/auth.log file. Check it.
This can occur due to Authentication refused from the other end due to bad permissions in the key files.Recreate the ssh_host_dsa_key and ssh_host_rsa_key if needed(ssh-keygen -t 'dsa/rsa') and overwrite these files in /etc/ssh.Hope this helps
'Connection reset by peer' usually means that you have written to a connection that has already been closed by the peer. Alternatively the peer has deliberately reset it, but that is pretty rare.
Probably you have sent something the peer doesn't understand so it has given up. Are you sure it really is SSH at the other end?
发布评论
评论(2)
sshd 服务器是否正在运行?设置为接受非本地连接(检查 /etc/sshd/sshd_config)?您是否有本地防火墙(iptables)阻止它?如果您尝试通过某种路由器,该路由器是否有防火墙阻止它?
默认情况下,OpenSSH 服务器记录到 syslog 的 AUTH 工具,
ssh 登录尝试的所有详细信息都将保存在 /var/log/auth.log 文件中。检查一下。
这可能是由于密钥文件中的权限错误而导致另一端的身份验证被拒绝而发生。如果需要,请重新创建 ssh_host_dsa_key 和 ssh_host_rsa_key (ssh-keygen -t 'dsa/rsa') 并覆盖 /etc/ssh 中的这些文件。希望这有帮助
Is the sshd server running? Set to accept nonlocal connections (check /etc/sshd/sshd_config)? Do you have a local firewall (iptables) blocking it? If you're trying to go through a router of some sort, does the router have a firewall blocking it?
By default, the OpenSSH server logs to the AUTH facility of syslog,
All the details of ssh login attempts will be saved in your /var/log/auth.log file. Check it.
This can occur due to Authentication refused from the other end due to bad permissions in the key files.Recreate the ssh_host_dsa_key and ssh_host_rsa_key if needed(ssh-keygen -t 'dsa/rsa') and overwrite these files in /etc/ssh.Hope this helps
“连接被对等方重置”通常意味着您已写入已被对等方关闭的连接。或者,对等方故意重置它,但这种情况非常罕见。
可能您发送了一些对方无法理解的内容,因此它已经放弃了。你确定另一端真的是 SSH 吗?
'Connection reset by peer' usually means that you have written to a connection that has already been closed by the peer. Alternatively the peer has deliberately reset it, but that is pretty rare.
Probably you have sent something the peer doesn't understand so it has given up. Are you sure it really is SSH at the other end?