OpenSSH 7.3 on CentOs 6.7

OpenSSH 7.3 on CentOs 6.7

A simple script to upgrade OpneSSH on CentOs 6.7.

# Copyright © 2016 Faishal Saiyed
timestamp=$(date +%s)
if [ ! -f ]; then wget; fi;
unzip -o -d openssh-7.3p1
cd openssh-7.3p1/
cp /etc/pam.d/sshd pam-ssh-conf-$timestamp
rpm -U *.rpm
yes | cp pam-ssh-conf-$timestamp /etc/pam.d/sshd
/etc/init.d/sshd restart

To use you can run following command with root user

bash < ( curl -sL ) 

Leave a Reply

Your email address will not be published. Required fields are marked *