---编辑ssh配置文件
nano /etc/ssh/sshd_config
修改:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
--ssh服务启动命令:
sudo /etc/init.d/ssh start |stop |restart
---设置ssh开机自启动:update-rc.d ssh enable

---编辑ssh配置文件
nano /etc/ssh/sshd_config
修改:
PermitRootLogin yes #允许root登录
PermitEmptyPasswords no #不允许空密码登录
PasswordAuthentication yes # 设置是否使用口令验证。
--ssh服务启动命令:
sudo /etc/init.d/ssh start |stop |restart
---设置ssh开机自启动:update-rc.d ssh enable