设置root密码
sudo passwd root
安装并打开ssh服务
sudo apt-get install openssh-server
检查ssh开启情况
ps -e |grep ssh
开启ssh服务:
/etc/init.d/ssh start
修改sshd_config配置:
vim /etc/ssh/sshd_config
PasswordAuthentication yes
PermitRootLogin yes
重启ssh:
sudo /etc/init.d/ssh restart
网友评论