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