问题原文
原帖链接 · daveslab · CC BY-SA 4.0
I am trying to login via ssh to a server with the root account (yes, I know, a bad idea; I'm just testing), but authentication keeps failing :
Feb 21 09:26:38 myserver sshd[4481]: Failed password for root from x.x.x.x port 60708 ssh2
When I connect to the server via ssh with another account and do su - to get root access, I enter the password and it works. How is it possible that the password won't work for SSH but works on local?
已采纳解答
原帖链接 · Stuggi · CC BY-SA 4.0
Most SSH servers by default doesn’t allow root login over SSH, you’ll need to change a line in the SSH server configuration to allow this.
On most systems, this is done by uncommenting the PermitRootLogin yes line in the /etc/ssh/sshd_config file, and restarting the SSH daemon.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
