我在Ubuntu中运行一个语篇论坛软件容器,我能够使用命令登录到容器。
数独码头主管-it应用程序bash
然后我已经为root用户设置了密码,但是ssh并不像预期的那样工作,总是得到不正确的密码。
SSH调试日志
Set /proc/self/oom_score_adj to 0
debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
debug1: inetd sockets after dupping: 3, 3
Connection from ::1 port 45924 on ::1 port 22
debug1: Client
为了提高Ubuntu20.04服务器的安全性,我在本文中禁用了pw登录。
它可以工作,但是sysinfo不再出现在SSH登录上:
% ssh server
Last login: Sun Mar 6 21:07:05 2022 from 77.2.170.244
这些步骤包括:
$ sudo vi /etc/ssh/sshd_config
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
PermitRootLogin no
PermitRootLogin prohibit-password
我怎样