Linux系统下怎么升级OpenSSH? - 万象系统之家

万象系统之家 - 系统光盘下载网站!

当前位置:万象系统之家 > 系统教程 > linux升级openssh

Linux系统下怎么升级OpenSSH?

时间:2015-08-27 13:58:20 作者:zhijie 来源:万象系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20150827/56368.html 手机查看 评论

  最近很多Linux用户使用OpenSSH的时候出现了故障,解决的方法很简单,那就是在Linux中安装OpenSSH新的版本。那么Linux系统下怎么升级OpenSSH呢?

Linux系统下怎么升级OpenSSH?

  注意:升级过程中不要重启sshd服务,否则会远程连接不上!!

  升级版本为:openssh-6.6p1

  升级方法:

  1、加载本地源(方法不描述了)

  2、执行下列命令

  yum install bash -y

  yum install -y zlib zlib-devel openssl openssl-devel

  tar -zxvf openssh-6.6p1.tar.gz -C /usr/local/src/

  cd /usr/local/src/openssh-6.6p1/

  cp /etc/init.d/sshd /etc/init.d/sshd.old

  tar -cvf ssh.bak.tar /etc/ssh

  yum install gcc -y

  3、卸载老版本

  rpm -qa|grep ssh

  rpm -e openssh-server-5.3p1-81.el6.x86_64

  rpm -e openssh-clients-5.3p1-81.el6.x86_64 --nodeps

  rpm -qa|grep ssh

  rpm -e openssh-askpass-5.3p1-81.el6.x86_64

  rpm -e openssh-5.3p1-81.el6.x86_64

  rpm -qa|grep ssh

  4、开始升级

  。/configure --prefix=/usr --sysconfdir=/etc/ssh --with-zlib --with-md5-passwords

  make && make install

  mv /etc/init.d/sshd.old /etc/init.d/sshd

  mkdir -p /var/empty/sshd/etc

  /etc/init.d/sshd restart

  chkconfig --add sshd

  chkconfig sshd on

  chkconfig --list|grep sshd

  5、查看是否升级成功

  ssh -V

  OpenSSH_6.6p1, OpenSSL 1.0.0-fips 29 Mar 2010

  以上就是Linux系统下怎么升级OpenSSH的介绍了,升级成功了旧版本的一些问题和故障自然就能得到修复了。

标签 openssh

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表万象系统之家立场

Linux系统推荐

本站发布的系统仅为个人学习测试使用,请在下载后24小时内删除,不得用于任何商业用途,否则后果自负,请支持购买微软正版系统!

如侵犯到您的权益,请及时通知我们,我们会及时处理,对系统之家有任何投诉或建议,请与管理员联系. QQ:346231061

Copyright2024 万象系统之家(www.maxdo.tech) 版权所有 沪ICP备2021023961号-5 粤公网安备 13010202004188