ubuntu14.04 允许root用ssh登录

时间:2022-05-13 05:43:49

重启ssh

service ssh restart

查看ssh是否已安装

ssh进程

ps -e | grep ssh 

ubuntu14.04 允许root用ssh登录

 ssh占用端口

lsof -i:22

ubuntu14.04 允许root用ssh登录

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

注:

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

使用其他账号连接没问题

编辑/etc/ssh/sshd_config

注释掉PermitRootLogin without-password

增加PermitRootLogin yes

保存,重启ssh

用putty可以登录到服务器了