设置ubuntu远程

1,开启root

启用root

sudo passwd root

2次输入密码后即可

2,开启root远程

vi /etc/ssh/sshd_config

将PermitRootLogin without-password 修改为PermitRootLogin yes

 

3,设置固定IP

vim /etc/network/interfaces

iface ens33 inet static
address 192.168.0.66
netmask 255.255.255.0
gateway 192.168.0.1

4,设置永久DNS

vim /etc/resolvconf/resolv.conf.d/base
nameserver 192.168.0.1

5,默认root登录

vim /etc/lightdm/lightdm.conf

END !

 

posted @ 2016-05-14 21:17  知_行  阅读(280)  评论(0编辑  收藏  举报