HELP!ssh无法连接了!

[复制链接]
查看11 | 回复6 | 2021-3-5 02:18:03 | 显示全部楼层 |阅读模式
各位大神啊,求帮助啊!
是这样的,小弟有台服务器,装了hypervm,下面开了两个vps(当然不是卖给人的,练手顺便方便管理网站),其中某个装了kloxo,昨天在没有关闭vps的情况通过hypervm完成了备份,后来就发现ssh无法连接了,把防火墙关闭了也不行(通过kloxo的命令控制台关闭的),所以特来求助~~现在通过命令控制台运行“/usr/sbin/sshd restart”,显示如下:
/etc/ssh/sshd_config: line 74: Bad configuration option: GSSAPIAuthentication
/etc/ssh/sshd_config: line 76: Bad configuration option: GSSAPICleanupCredentials
/etc/ssh/sshd_config: line 87: Bad configuration option: UsePAM
/etc/ssh/sshd_config: line 90: Bad configuration option: AcceptEnv
/etc/ssh/sshd_config: line 91: Bad configuration option: AcceptEnv
/etc/ssh/sshd_config: line 92: Bad configuration option: AcceptEnv
/etc/ssh/sshd_config: terminating, 6 bad configuration options

先谢谢各位大神!
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
/etc/ssh/sshd_config文件有错误
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
可是我什么都没改过,而且我copy另外一台vps的配置文件过去也没有用,杯具了,怎样重建这个文件哈?
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
另外找个/etc/ssh/sshd_config放到网站上
wget -O/etc/ssh/sshd_config http://那个网站上的sshd_config网址
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
KLOXO的LX卫士关了没有 没有的话你用代理进下KLOXO关闭掉
然后重启 不过楼上大神说的挺专业 你先试试他的办法
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
已经copy过了,还是不能,请问还有没有其他办法?例如卸载掉ssh再重装?
回复

使用道具 举报

千问 | 2021-3-5 02:18:03 | 显示全部楼层
非恶意人工置顶~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行