Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法从终端访问服务器SSH_Ssh_Ssh Keys_Openssh - Fatal编程技术网

无法从终端访问服务器SSH

无法从终端访问服务器SSH,ssh,ssh-keys,openssh,Ssh,Ssh Keys,Openssh,好的,我最近买了一个新域名,并为它设置了主机。我已经为域启用了SSH,并创建了公钥和私钥。我正在使用mac上的终端尝试连接。然而,我不断地发现这个错误: ssh_exchange_identification: read: Connection reset by peer 我曾试图解决托管提供商的问题,但它们再次变得毫无用处。下面是我得到的详细回复: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration

好的,我最近买了一个新域名,并为它设置了主机。我已经为域启用了SSH,并创建了公钥和私钥。我正在使用mac上的终端尝试连接。然而,我不断地发现这个错误:

ssh_exchange_identification: read: Connection reset by peer
我曾试图解决托管提供商的问题,但它们再次变得毫无用处。下面是我得到的详细回复:

OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/kylebebeau/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to theinitgroup.com [72.34.33.171] port 22.
debug1: Connection established.
debug1: identity file /Users/kylebebeau/.ssh/id_rsa type 1
debug1: identity file /Users/kylebebeau/.ssh/id_rsa-cert type -1
debug1: identity file /Users/kylebebeau/.ssh/id_dsa type -1
debug1: identity file /Users/kylebebeau/.ssh/id_dsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
ssh_exchange_identification: read: Connection reset by peer

我不知道从哪里开始解决这个问题。我已经读过关于这个问题的书,并尝试过各种方法来解决这个问题,但都没有取得任何进展。任何意见都将不胜感激。

我想出来了。我只需要将我的ip添加到hosts.access文件。

Offtopic。这不是一个编程问题。你可以试试servefault或superuser。谢谢Marc,我会把我的问题贴在那里。