无法从OS X连接到Ubuntu服务器

时间:2015-08-01 00:20:15

标签: ubuntu

我正在尝试从OS X终端连接到Ubuntu 14上的服务器,但是" Connection由191.233.67.113和#34;

关闭

我还尝试连接该方法ssh -p 22 -v azureuser@djurahon.cloudapp.net

结果是:

OpenSSH_6.7p1, LibreSSL 2.1.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 102: Applying options for *
debug1: Connecting to djurahon.cloudapp.net [191.233.67.113] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/Djurahon/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.7
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH_6.6.1* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 191.233.67.113

如何从Azure连接到Ubuntu 14上的服务器?

1 个答案:

答案 0 :(得分:0)

尝试删除“known_host”并再次连接,如下所示删除主机:

ssh-keygen -f "/PATH/TO/.ssh/known_hosts" -R IP_ADDRESS_OR_Host_name