Cygwin的SSH问题,无法连接到本地主机,连接通过127.0.0.1
关闭我已经安装了Cygwin在Windows 2003服务器,我添加openssh包,成立了neccesary环境变量, 运行以下命令Cygwin的SSH问题,无法连接到本地主机,连接通过127.0.0.1
mkpasswd -l > /etc/passwd
mkgroup -l > /etc/group
ssh-host-config
ssh-user-config
我已经开始了SSH服务,但是当我运行ssh -v localhost
我得到以下
debug1: Reading configuration data /etc/ssh_config
debug1: Connection to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/RLawton_P/.ssh/id_rsa type 1
debug1: identity file /home/RLawton_P/.ssh/id_rsa-cert type -1
debug1: identity file /home/RLawton_P/.ssh/id_dsa type 2
debug1: identity file /home/RLawton_P/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.6
debug1: match: OpenSSH_5.6 pat OpenSSH*
debug1: Enabling compatability mode for protocol 2.0
debug1: Local version string SSh-2.0-OpenSSH_5.6
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024(1024(8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host 'localhost' is known and matches the RSA host key.
debug1: Found key in /home/Rlawton_P/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowede by server
debug1: SSH2_MSG_SERVICE_REQUEST
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey, password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/RLawton_P/.ssh/id_rsa
Connection closed by 127.0.0.1
任何人都可以指教一下,我需要做的就是它的工作?
我不知道很多关于Cygwin的,这属于一个评论没有回答(但我没有足够的声誉还没有),但...
我发现AndLinux要好得多/比Cygwin更容易使用。它给人的感觉更像一个真正的Linux与Windows共存,它采用的是Linux标准的包管理系统,这可能使安装除通过Cygwin容易额外的库或头。
此外,另一个评论不回答:你可以格式化你的问题,以便更容易使用块引用或代码示例格式选项阅读。
当你安装了Cygwin和SSH运行,主机的配置,您可能已经创建了用户名为“cyg_server”。所以当你连接到ssh时,你需要使用该用户“cyg_server @ localhost”。
当你与该用户运行ssh,它会问你,你当您运行的ssh-主机配置提供的密码。
$ SSH cyg_server @本地
cyg_server @本地的密码:
上次登录:周一12月31日1时十四分44秒从2012 :: 1
cyg_server @ polorumpus〜
$
我希望这将是有用。在cygwin.bat
如果你真的需要提升的权限从具有管理权限(XP)或帐户启动cygwin外壳与R-CLICK和“以管理员身份运行”(Vista中,Win7的)。这应该会导致这个问题。
这看起来像我对这个职位,Public key authentication issues on cygwin看到了同样的问题。
您可以通过进入下一个详细级别进行连接时,验证,
# ssh -vv localhost
可能的超级用户/ ServerFault更合适...... – Amro 2011-07-12 00:28:33