Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Ubuntu root can not ssh login problem solved!

Shulou Source: shulou.com Published: 2022-06-01 03:51:23 10月06日 Update

After installing Ubuntu Server 14.04and discovering that the root password is configured today,

Unexpectedly can not log in ssh, but su root is normal! Why?

There are restrictions in sshd_config in the original new version.

# vim / etc/ssh/sshd_config

# Authentication:

LoginGraceTime 120

# PermitRootLogin without-password # find it here and comment it

Change PermitRootLogin yes # to yes and restart ssh

StrictModes yes

# service ssh restart

# Tips: note here that the restart of / etc/init.d/ssh restart in this way is not successful.

Tags: Login success password method comments configuration restrictions questions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Xiaomi Redmi Shulou Information