yum install pam-devel -y
mkdir /root/openssh
cd /root/openssh
wget rpm.lhb.kr/ktds/openssh/openssh-5.8p2.tar.gz
tar xvfpz openssh-5.8p2.tar.gz
cd openssh-5.8p2
./configure
--prefix=/usr/local/openssh
--sysconfdir=/etc/ssh
--with-zlib=/usr/lib
--with-pam
--with-mantype=man
--with-md5-passwords
make
make install
# /etc/ini.d/sshd 수정
KEYGEN=/usr/local/openssh/bin/ssh-keygen
SSHD=/usr/local/openssh/sbin/sshd
RSA1_KEY=/etc/ssh/ssh_host_key
RSA_KEY=/etc/ssh/ssh_host_rsa_key
DSA_KEY=/etc/ssh/ssh_host_dsa_key
PID_FILE=/var/run/sshd.pid
# /etc/ssh/sshd_config 수정