我一直在设置 centos 7 服务器作为 torrent 下载器和 plex 查看器。我已经正确配置了两者,并且都可以从 LAN 内访问(Plex 甚至可以从互联网访问)。
突然,我的 ssh 连接断开了,我无法再次连接到服务器。两个服务仍然正常运行,我尝试了所有这些方法,删除 /etc/ssh/ssh_host* 文件等,但都无济于事。我仍然可以以 root 身份正确运行 ssh cantolin@localhost 并登录。当然,sshd 已启动并运行,firewall-cmd 已配置好(到目前为止,它运行正常)
当我从 Windows 使用 -vvv 标志运行 ssh 时,我得到了这个
[Modesto.Modesto-pc] ➤ ssh [email protected] -vv
OpenSSH_7.1p2, OpenSSL 1.0.1g 7 Apr 2014
debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.1.30 [192.168.1.30] port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/mobaxterm/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.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
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 192.168.1.30:22 as 'cantolin'
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 192.168.1.30
我无法共享我的 sshd_config,因为访问服务器的唯一方式是使用 HP ILO4 驱动的 Java 小程序,所以无法复制粘贴,但我只禁止了 root 登录,成功(至少不能从本地主机以 root 身份登录)。
到目前为止,我的 google-fu 储备已经耗尽,我的新信息来源是俄罗斯和中国网站。如果您能提供任何帮助,我将不胜感激。
编辑:到目前为止,我只设置了密码验证,因此还没有公钥/私钥