启用SSH
vim /etc/ssh/sshd_config #修改config文件内容
然后找到以下两行内容
PermitRootLogin yes
PasswordAuthentication yes
把前面的 # 去除
启用SSH
/etc/init.d/ssh start #启动服务
/etc/init.d/ssh status #查看服务状态
添加SSH自启动
update-rc.d ssh enable #添加ssh开启自动启动
vim /etc/ssh/sshd_config #修改config文件内容
然后找到以下两行内容
PermitRootLogin yes
PasswordAuthentication yes
把前面的 # 去除
/etc/init.d/ssh start #启动服务
/etc/init.d/ssh status #查看服务状态
update-rc.d ssh enable #添加ssh开启自动启动