Fork me on GitHub

Ubuntu开启root用户ssh远程密码登录

ubuntu默认关闭root用户使用密码ssh远程登录

开启方法:

编辑配置文件/etc/ssh/sshd_config

vi /etc/ssh/sshd_config

修改:

# 找到并用#注释掉这行:
# PermitRootLogin prohibit-password
# 新建一行 添加:
PermitRootLogin yes

重启服务

sudo service ssh restart

End

posted @ 2021-07-18 13:57  流柯  阅读(596)  评论(0编辑  收藏  举报
访客: 浏览: