-
查看ssh服务状态
/etc/init.d/ssh status -
修改配置文件
vim /etc/ssh/sshd_config#PermitRootLogin prohibit-password --> PermitRootLogin yes #PasswordAuthentication yes --> PasswordAuthentication yes #PubkeyAuthentication yes --> PubkeyAuthentication yes -
启动ssh服务
/etc/init.d/ssh restart -
开机自启动
update-rc.d ssh enable
相关文章: