• 구름조금동두천 7.4℃
  • 맑음강릉 9.6℃
  • 연무서울 9.2℃
  • 연무대전 10.0℃
  • 맑음대구 9.1℃
  • 맑음울산 9.5℃
  • 연무광주 9.6℃
  • 맑음부산 10.8℃
  • 맑음고창 7.1℃
  • 구름많음제주 10.7℃
  • 맑음강화 7.8℃
  • 구름많음보은 9.0℃
  • 구름조금금산 10.3℃
  • 맑음강진군 8.4℃
  • 맑음경주시 8.8℃
  • 맑음거제 10.4℃
기상청 제공

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