2010년 9월 23일 목요일

openssh 5.6 for CentOS 5.5

현재 openssh의 버전은 5.6이다. 그런데 CentOS 5.5에 포함된 버전은 4.3 이다. 메이저버전으로 1.1이상 차이가 나고 있어서 업그레이드를 할려는 찰라에 검색을 통해서 배포된 소스를 가지고 패키지를 제작할 수 있는 방법을 알아 냈다.

일단 openssh 5.6으로 업그레이드를 하게되면 기본으로 protocol 버전이 2로 된다.

원본 링크: http://blog.mizoshiri.com/archives/971

윗글의 핵심은 압축을 해제하고 나서 contrib/redhat/openssh.spec 을 수정한다. 그리고 다시 압축을 한후에 다음과 같이 명령어를 입력한다.

[code bash]
]# rpmbuild -ta --clean openssh-5.6p1-final.tar.gz
[/code]

이렇게 하게되면 패키지가 제작된다.

sshd_config 설정
[code text]
Protocol 2
SyslogFacility AUTHPRIV
PermitRootLogin yes
RSAAuthentication yes
PasswordAuthentication yes
PermitEmptyPasswords no
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
X11Forwarding yes
Subsystem   sftp    /usr/libexec/openssh/sftp-server
[/code]

Source RPM :
openssh-5.6p1-1.el5.centos.src.zip

openssh 5.6 for CentOS 5.5


0 개의 댓글:

댓글 쓰기