红联Linux门户
Linux帮助

ssh不能登陆了,openssl库冲突

发布时间:2015-12-19 16:09:15来源:linux网站作者:张旭0512

平常没咋注意(不知道什么操作),今天不能ssh登陆centos了。

在服务端排查,说是“starting sshd: OpenSSL version mismatch.Built against”,唉,openssl冲突了。上网搜了一下,尝试了重新安装openssh,暂时解决了该问题。


1.删除现有的openssh

#rpm -e openssh --nodeps
#rpm -e openssh-server --nodeps
#rpm -e openssh-clients --nodeps

2.下载最新的openssh

openssh依赖openssl库,现在因为版本冲突,所以openssl就用现在的版本吧。

从官网(http://www.openssh.com/)下一个较新版本。

3.安装

没啥新鲜的依次configure, make , make install

4.启动

/usr/local/sbin/sshd

5.验证

OK,可以登陆了!


重新安装后,现在还不能用service sshd start这样的操作,服务还没加,需要的话再加上吧。


ubuntu安装openssl库:http://www.linuxdiyf.com/linux/13828.html

Ubuntu编译环境构建(openssl):http://www.linuxdiyf.com/linux/13751.html

Linux下使用OpenSSL生成证书:http://www.linuxdiyf.com/linux/11951.html

Linux下OpenSSL安装图文详解:http://www.linuxdiyf.com/linux/8744.html