码迷,mamicode.com
首页 > 其他好文 > 详细

ubuntu 允许root远程ssh登录

时间:2014-10-03 18:25:14      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:ar   sp   art   c   on   log   r   ad   bs   

启用root用户:sudo passwd root     //修改密码后就启用了。

一 安装 ssh服务

apt-get install ssh

 

二 开通 root远程登录权限

vi /etc/ssh/sshd_config

将PermitRootLogin without-password 修改为PermitRootLogin yes

 

三 重启ssh服务

service ssh restart

 

四 登录

ssh IP

ssh 192.168.1.128

 

 

ubuntu ip

 

auto eth0

iface eth0 inet static

address 192.168.1.128

netmask 255.255.255.0

gateway 192.168.1.1

 

dns-nameservers 192.168.1.1

ubuntu 允许root远程ssh登录

标签:ar   sp   art   c   on   log   r   ad   bs   

原文地址:http://www.cnblogs.com/petrusxu/p/4005052.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!