cygwin ssh连接OK通过localhost,但不是通过127.0.0.1


0

我已经安装了Cygwin和OpenSSH服务器。

Cygwin版本为2.2.1(0.289 / 5/3),OpenSSH版本为7.0p1-1

经过一些配置后,我可以在我的SSH服务器上连接:

$ ssh username@localhost
username@localhost's password:
Last login: Sat Aug 22 13:37:06 2015 from ::1

但是,我无法在我的SSH服务器上连接:

$ ssh username@127.0.0.1
username@127.0.0.1's password:
Permission denied, please try again.
username@127.0.0.1's password:
Permission denied, please try again.
username@127.0.0.1's password:
Received disconnect from 127.0.0.1: 2: Too many attempts.
Disconnected from 127.0.0.1

我很困惑,因为我不知道localhost和之间有什么区别127.0.0.1

欲了解更多的细节,我已经描述ssh_configsshd_config这里


基本上,如果没有任何错误配置,这两者之间应该没有区别。你的hosts文件中写了什么(不确定它在windows中的位置)?
Jakuje 2015年

hostsWindows上的文件。Cygwin,内容是一样的。
Jeon
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.