ubuntu14.04 允许root用ssh登录

重启ssh

service ssh restart

查看ssh是否已安装

ssh进程

ps -e | grep ssh 

 ssh占用端口

lsof -i:22

ssh服务已启动,但是用root账号无法连接

注:

  一般root是被禁用的,需要先开启root,参照

使用其他账号连接没问题

编辑/etc/ssh/sshd_config

注释掉PermitRootLogin without-password

增加PermitRootLogin yes

保存,重启ssh

sudo service ssh restart

用putty可以登录到服务器了

  

 

 

 

  

 

posted @ 2017-03-10 17:49  慕尘  阅读(3775)  评论(0编辑  收藏  举报