• 구름많음동두천 -13.7℃
  • 맑음강릉 -7.1℃
  • 맑음서울 -14.2℃
  • 맑음대전 -11.1℃
  • 구름많음대구 -8.3℃
  • 맑음울산 -7.3℃
  • 광주 -8.1℃
  • 맑음부산 -5.6℃
  • 흐림고창 -10.3℃
  • 제주 -1.5℃
  • 구름많음강화 -13.6℃
  • 맑음보은 -11.1℃
  • 구름많음금산 -9.7℃
  • 흐림강진군 -8.5℃
  • 맑음경주시 -7.3℃
  • 구름조금거제 -4.5℃
기상청 제공

openssh 5.8.p2 컴파일하기

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 수정