1. 程式人生 > >centos升級openssh版本

centos升級openssh版本

1.現在最新包:https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gz

2.備份檔案:cp -rf /etc/ssh /etc/ssh_bk

3.記錄原來pid

[[email protected] ssh_bk]# ps -aux|grep ssh
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/FAQ
root       2407  0.0  0.0  66240  1240 ?        Ss   Jan04   0:00
/usr/sbin/sshd root 22018 0.0 0.0 113724 6116 ? Ss Jan07 0:01 sshd: [email protected] root 22112 0.0 0.0 57436 2388 ? Ss Jan07 0:00 /usr/libexec/openssh/sftp-server root 56258 0.0 0.0 103332 856 pts/1 S+ 11:26 0:00 grep ssh root 72854 0.0 0.0 113156 5708 ? Ss Jan07 0
:00 sshd: [email protected]/1

4.重啟 service sshd restart