• 맑음동두천 2.1℃
  • 맑음강릉 5.9℃
  • 맑음서울 3.7℃
  • 구름조금대전 2.9℃
  • 구름많음대구 7.1℃
  • 흐림울산 8.7℃
  • 구름조금광주 5.9℃
  • 흐림부산 10.3℃
  • 구름많음고창 3.8℃
  • 흐림제주 10.0℃
  • 구름조금강화 1.8℃
  • 구름많음보은 2.4℃
  • 구름많음금산 4.4℃
  • 흐림강진군 7.3℃
  • 구름많음경주시 7.7℃
  • 구름많음거제 9.6℃
기상청 제공

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