@
hellojinjie 嗯,刚才测试了下,在搭建SSHD服务的Windows机器上不用127.0.0.1的方式连接本机是正常可以连接的,但是局域网的其它机器连接就失败,失败信息如下:
{ ~ } » ssh VBox@192.168.1.124 -v ~
OpenSSH_6.6.1, OpenSSL 1.0.1g 7 Apr 2014
debug1: Connecting to 192.168.1.124 [192.168.1.124] port 22.
debug1: Connection established.
debug1: identity file /home/Tonni/.ssh/id_rsa type 1
debug1: identity file /home/Tonni/.ssh/id_rsa-cert type -1
debug1: identity file /home/Tonni/.ssh/id_dsa type -1
debug1: identity file /home/Tonni/.ssh/id_dsa-cert type -1
debug1: identity file /home/Tonni/.ssh/id_ecdsa type -1
debug1: identity file /home/Tonni/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/Tonni/.ssh/id_ed25519 type -1
debug1: identity file /home/Tonni/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1
debug1: match: OpenSSH_6.6.1 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5-etm@openssh.com none
debug1: kex: client->server aes128-ctr hmac-md5-etm@openssh.com none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ECDSA 1b:17:da:5c:48:45:5f:a0:cd:3b:c7:b4:9d:9c:6f:85
The authenticity of host '192.168.1.124 (192.168.1.124)' can't be established.
ECDSA key fingerprint is 1b:17:da:5c:48:45:5f:a0:cd:3b:c7:b4:9d:9c:6f:85.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.124' (ECDSA) to the list of known hosts.
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
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/Tonni/.ssh/id_rsa
Connection closed by 192.168.1.124