1. 普通用户登录编辑ssh配置文件
1.1备份配置文件
路径 /etc/ssh/
$ sudo cp sshd_config sshd_config.backup
1.2编辑ssh配置文件
$ sudo vim.tiny /etc/ssh/sshd_config
增加2个配置
PasswordAuthentication yes
PermitRootLogin yes
2.设置root密码
$ sudo passwd
3.设置开机启动
# update-rc.d ssh enable src="http://link.hhtjim.com/163/452613551.mp3" width="100%" height="80px" scrolling="yes">
最后
以上就是能干冷风最近收集整理的关于linux ssh root 拒绝登陆的全部内容,更多相关linux内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复