Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.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
Linux ssh:在发送SSH2\u MSG\u KEXINIT之后,IP关闭了连接_Linux_Ssh - Fatal编程技术网

Linux ssh:在发送SSH2\u MSG\u KEXINIT之后,IP关闭了连接

Linux ssh:在发送SSH2\u MSG\u KEXINIT之后,IP关闭了连接,linux,ssh,Linux,Ssh,我正在尝试从另一台linux机器ssh到我自己的笔记本电脑(Ubuntu 14.04)。我收到错误“连接被IP关闭”,其中IP是我笔记本电脑的IP地址。以下是详细输出($HOME是主目录): 我无法在线找到如何解决此问题。当我尝试在自己的笔记本电脑上ssh localhost时,我得到了完全相同的调试输出,但错误消息是从套接字读取失败:对等方重置连接 即使在调试输出中,有一行显示无法将“$HOME/.ssh/id_rsa”加载为RSA1公钥,根据这一点,此消息是正常的 以下是有关我的设置的一些附

我正在尝试从另一台linux机器ssh到我自己的笔记本电脑(Ubuntu 14.04)。我收到错误“连接被
IP
关闭”,其中
IP
是我笔记本电脑的IP地址。以下是详细输出(
$HOME
是主目录):

我无法在线找到如何解决此问题。当我尝试在自己的笔记本电脑上ssh localhost时,我得到了完全相同的调试输出,但错误消息是
从套接字读取失败:对等方重置连接

即使在调试输出中,有一行显示
无法将“$HOME/.ssh/id_rsa”加载为RSA1公钥
,根据这一点,此消息是正常的

以下是有关我的设置的一些附加信息:

OpenSSH版本:SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.8

sshd\u配置

Port 24
AuthenticationMethods publickey
# ListenAddress 192.168.1.1
HostKey /etc/ssh/ssh_host_key
ServerKeyBits 1024
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
IgnoreUserKnownHosts no
StrictModes yes
X11Forwarding yes
PrintMotd yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords yes
这个配置有什么问题吗?为什么会发生这种错误,为什么会在发送了SSH2\u MSG\u KEXINIT之后发生这种错误?如何解决这个问题


衷心感谢

通过执行以下操作重新安装ssh位

sudo apt get--重新安装openssh服务器openssh客户端

Port 24
AuthenticationMethods publickey
# ListenAddress 192.168.1.1
HostKey /etc/ssh/ssh_host_key
ServerKeyBits 1024
LoginGraceTime 600
KeyRegenerationInterval 3600
PermitRootLogin no
IgnoreRhosts yes
IgnoreUserKnownHosts no
StrictModes yes
X11Forwarding yes
PrintMotd yes
SyslogFacility AUTH
LogLevel INFO
RhostsAuthentication no
RhostsRSAAuthentication no
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords yes