在 ubuntu 上启用 root 远程ssh登录

#修改sshd服务配置文件
vim /etc/ssh/sshd_config
#PermitRootLogin prohibit-password 注释掉此行
PermitRootLogin yes 修改为下面形式
systemctl restart sshd

 

posted @ 2021-01-16 13:22  浩浩呀  阅读(103)  评论(0)    收藏  举报