Received disconnect from 223.85.53.101 port 50896:14: No supported authentication methods available [preauth]

服务器本来不会显示这个错误,要使用查看ssh服务状态的命令:

sudo systemctl status sshd

然后报错:

● ssh.service - OpenBSD Secure Shell server

     Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)

     Active: active (running) since Fri 2023-12-08 16:42:46 CST; 1min 40s ago

       Docs: man:sshd(8)

             man:sshd_config(5)

    Process: 1817 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)

   Main PID: 1831 (sshd)

      Tasks: 1 (limit: 2195)

     Memory: 1.8M

     CGroup: /system.slice/ssh.service

             └─1831 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups



Dec 08 16:42:47 iZbp13q6vsoi3n1ozm13psZ sshd[1834]: Accepted publickey for root from 47.96.60.212 port 63461 ssh2: RSA SHA256:15d3lHqvjSUo3Ca7+Cg0afTZy4Sm7u655TVw7H69xTY

Dec 08 16:42:47 iZbp13q6vsoi3n1ozm13psZ sshd[1834]: pam_unix(sshd:session): session opened for user root by (uid=0)

Dec 08 16:42:47 iZbp13q6vsoi3n1ozm13psZ sshd[1834]: pam_unix(sshd:session): session closed for user root

Dec 08 16:42:48 iZbp13q6vsoi3n1ozm13psZ sshd[1855]: Accepted publickey for root from 47.96.60.217 port 25420 ssh2: RSA SHA256:15d3lHqvjSUo3Ca7+Cg0afTZy4Sm7u655TVw7H69xTY

Dec 08 16:42:48 iZbp13q6vsoi3n1ozm13psZ sshd[1855]: pam_unix(sshd:session): session opened for user root by (uid=0)

Dec 08 16:42:48 iZbp13q6vsoi3n1ozm13psZ sshd[1855]: pam_unix(sshd:session): session closed for user root

Dec 08 16:43:33 iZbp13q6vsoi3n1ozm13psZ sshd[1876]: error: Received disconnect from 223.85.53.101 port 50896:14: No supported authentication methods available [preauth]

Dec 08 16:43:33 iZbp13q6vsoi3n1ozm13psZ sshd[1876]: Disconnected from authenticating user root 223.85.53.101 port 50896 [preauth]

Dec 08 16:44:09 iZbp13q6vsoi3n1ozm13psZ sshd[1878]: error: Received disconnect from 223.85.53.101 port 50915:14: No supported authentication methods available [preauth]

Dec 08 16:44:09 iZbp13q6vsoi3n1ozm13psZ sshd[1878]: Disconnected from authenticating user root 223.85.53.101 port 50915 [preauth]

解决办法:修改配置文件

sudo vim /etc/ssh/sshd_config

 

 

Logo

鸿蒙生态一站式服务平台。

更多推荐