CentOS5.5にOpenSSH5.8p2を入れる

手前のCentOS5.5で入っているOpenSSHが4.3p2-41.el5_5.1で、
yumで最新のを入れても4.3p2-82.el5だった為、以下のURLで紹介されている
/etc/ssh/sshd_configの「Match」が使用出来なかった。

ssh の認証方法をユーザごとに設定する - isseium's blog
http://jfut.integ.jp/2007/03/27/

ので、色々調べてみたところ、CentALTというリポジトリに5.8p2があるという
情報を見つけたので、入れてみた。

# rpm -ivh http://centos.alt.ru/repository/centos/5/x86_64/centalt-release-5-3.noarch.rpm

バージョンのところは読み替える事。
なくなってたらx86_64まで戻って最新を探す。

/etc/yum.repos.d/centalt.repoが作成され、enabledが1になっていたので、
面倒な競合を避けるために一旦OFFる。

# vi /etc/yum.repos.d/centalt.repo
...
enabled=0
...

確認。

# yum list openssh
...
Installed Packages
openssh.x86_64 4.3p2-41.el5_5.1 installed
Available Packages
openssh.x86_64 5.8p2-16.el5.1 CentALT

アップグレード

# yum --enablerepo=CentALT upgrade openssh
...
Dependencies Resolved

================================================================================================
Package Arch Version Repository Size
================================================================================================
Updating:
openssh x86_64 5.8p2-16.el5.1 CentALT 310 k
Updating for dependencies:
openssh-clients x86_64 5.8p2-16.el5.1 CentALT 645 k
openssh-server x86_64 5.8p2-16.el5.1 CentALT 353 k

Transaction Summary
================================================================================================
Install 0 Package(s)
Upgrade 3 Package(s)

Total download size: 1.3 M
Is this ok [y/N]:

依存パッケージもopenssh-clients,serverぐらいであまり影響は無さそう。

Is this ok [y/N]: y
...

Updated:
openssh.x86_64 0:5.8p2-16.el5.1

Dependency Updated:
openssh-clients.x86_64 0:5.8p2-16.el5.1 openssh-server.x86_64 0:5.8p2-16.el5.1

Complete!

Match使えるようになった!