debian开启root远程登陆

1.修改配置文件

配置文件: /etc/ssh/sshd_config中的PermitRootLogin属性

示例

PermitRootLogin yes

2.重启ssh服务

systemctl restart sshd

创建时间 2022年2月28日
更新时间 2022年2月28日