配置Debian允许root用户SSH登录
程序员文章站
2022-06-06 17:07:15
...
全新安装系统后,默认情况下将禁用Debian Linux上的root登录。当您尝试以root用户身份登录Debian Jessie Linux服务器时,访问将被拒绝。
要在Debian Linux系统上为root用户启用SSH登录,您需要首先配置SSH服务器。打开/etc/ssh/sshd_config并更改以下行:
从:
PermitRootLogin without-password
至:
PermitRootLogin yes
完成上述更改后,请重新启动SSH服务器:
# /etc/init.d/ssh restart
[ ok ] Restarting ssh (via systemctl): ssh.service.
从现在开始,您将能够以root用户身份使用ssh登录:
推荐阅读
-
CentOS配置禁止root用户直接登录
-
WAMPserver配置方法(允许外部访问、phpmyadmin设置为输入用户名密码才可登录等)
-
Linux中禁止root用户SSH登录及修改SSH端口的方法
-
Win2012服务器 远程桌面帐户允许多用户同时登录的配置方法
-
Ubuntu20.04 使用root用户登录系统 和 SSH Connection refused 问题的解决
-
CentOS配置非root用户免密登录
-
非root用户 .ssh被删除,无法免密登录
-
只允许指定用户登录SSH
-
只允许指定用户登录SSH
-
Centos vps安全配置 修改ssh默认端口 创建新用户禁止root登陆 + ssr配置地址