Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ubuntu root can not ssh login problem solved!

2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report