1、安裝
apt-get install openssh-server
2、配置允許root賬戶遠程連接
修改/etc/ssh/sshd_config文件爲以下
PermitRootLogin yes
3、重新啓動ssh
/etc/init.d/ssh restart
1、安裝
apt-get install openssh-server
2、配置允許root賬戶遠程連接
修改/etc/ssh/sshd_config文件爲以下
PermitRootLogin yes
3、重新啓動ssh
/etc/init.d/ssh restart
su vim /etc/sudoers yy root = ALL ALL p 修改爲 wangfj = ALL ALL