通过在Windows上使用cygwin通过ssh连接minix的对等错误来重置连接

我在我的virtualbox上使用minix,昨天我可以用putty连接到minix,但今天一切似乎都失败了。 在这个失败后,我尝试卸载所有的openssh及其etc / ssh目录并重新安装,尝试其他networking适配器,尝试使用cygwin,并使用pscp。 但我根本无法连接到minix。 任何帮助,将不胜感激。

我现在在cygwin上使用这个命令:

$ ssh -p 3022 -v -v -v root@localhost 

输出是:

 OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug2: ssh_connect: needpriv 0 debug1: Connecting to localhost [::1] port 3022. debug1: connect to address ::1 port 3022: Connection refused debug1: Connecting to localhost [127.0.0.1] port 3022. debug1: Connection established. debug1: identity file /home/Cem/.ssh/id_rsa type -1 debug1: identity file /home/Cem/.ssh/id_rsa-cert type -1 debug1: identity file /home/Cem/.ssh/id_dsa type -1 debug1: identity file /home/Cem/.ssh/id_dsa-cert type -1 debug1: identity file /home/Cem/.ssh/id_ecdsa type -1 debug1: identity file /home/Cem/.ssh/id_ecdsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.3 ssh_exchange_identification: read: Connection reset by peer 

你必须允许Cygwin /etc/hosts.allow你自己的子网内的连接。 在Cygwin机器的/etc/hosts.allow添加这样的一行:

 ALL : 192.168.123.0/24 : allow 

在你的情况下,你需要像这样添加localhost

 ALL : localhost 127.0.0.1/32 [::1]/128 [::ffff:127.0.0.1]/128 : allow 

最后一行应该有一个Cygwin的股票安装,所以如果你不得不添加它会很奇怪。

它在哪里输入它很重要。 你将会有一些DENY条目,你应该把它放在这些之上,但是如果你把所有其他的ALLOW语句放在一起,它就会工作。