【下载最新版本 OpenSSH】OpenSSH 的官方网站:http://www.openssh.com这里我下载的是openssh-6.2p1升级前最好先升级opensslyum -y instal
【下载最新版本 OpenSSH】
OpenSSH 的官方网站:http://www.openssh.com这里我下载的是openssh-6.2p1升级前最好先升级openssl
yum -y install gcc openssl-devel pam-devel
【下面开始升级SSH】
备份原配置文件
mkdir /etc/sshbakmv /etc/ssh/* /etc/sshbak/
编译安装openssh
tar xzvf openssh-6.2p1.tar.gz cd openssh-6.2p1./configure --prefix=/usr --sysconfdir=/etc/sshmakemake install
重启服务
/etc/init.d/sshd restart
设置开机自启动
chkconfig --add sshd chkconfig sshd on
重启之后查看版本
[root@yyghdb ~]$ ssh -vOpenSSH_6.2p1, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] [-e escape_char] [-F configfile] [-I pkcs11] [-i identity_file] [-L [bind_address:]port:host:hostport] [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] [-R [bind_address:]port:host:hostport] [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]] [user@]hostname [command]
升级完成!