美文网首页
Ubuntu 18.04 远程允许root登录

Ubuntu 18.04 远程允许root登录

作者: Mlotjve | 来源:发表于2018-10-16 18:08 被阅读0次

1. 查看ssh服务器是否安装并启动

  #sudo ps -e | grep ssh

1. 安装ssh服务器

#sudo apt-get install openssh-server

2. 配置sshd文件

#sudo vi /etc/ssh/sshd_config

 PermitRootLogin yes (默认为#PermitRootLogin prohibit-password)

3. 重启服务器 service ssh restart

相关文章

网友评论

      本文标题:Ubuntu 18.04 远程允许root登录

      本文链接:https://www.haomeiwen.com/subject/xwsfzftx.html