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可以登录到服务器了

  

 

 

 

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM