それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

CentOS のレポジトリを追加して openssh の5.xを探した

CentOSの公式レポジトリは古すぎるんですよ 。

CentOSレポジトリで openssh-4.6以降(つまりMatchが使える)ものを探したけど無かった.別のレポジトリも追加して当たってみる

centosレポジトリで使えそうなもの

  • epel
  • dag
  • rpmforge

です

dag.repo

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux 
mirrorlist=http://apt.sw.be/redhat/el5/en/mirrors-rpmforge 
#baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag 
enabled=1 
gpgcheck=1 
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt 

centos Extra

cd /etc/yum.repos.d
sudo wget http://centos.karan.org/kbsingh-CentOS-Extras.repo

EPEL

sudo wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm
sudo wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -ivh epel-release-5-4.noarch.rpm

使い方

常に使う場合
vim /etc/yum.repos.d/XXX

enabled=1

にする

必要なときにだけ使う場合

逆に

enabled=0

にした場合は、

yum --enablerepos=XXX serch openssh

と使うときだけ有効にする.

OpenSSHをさがいた。

だめだ古い

Name       : openssh-server
Arch       : i386
Version    : 4.3p2
Release    : 41.el5
Size       : 475 k
Repo       : installed
Summary    : The OpenSSH server daemon
URL        : http://www.openssh.com/portable.html
License    : BSD
Description: OpenSSH is a free version of SSH (Secure SHell), a program for logging
           : into and executing commands on a remote machine. This package contains
           : the secure shell daemon (sshd). The sshd daemon allows SSH clients to
           : securely connect to your SSH server. You also need to have the openssh
           : package installed.

Available Packages
Name       : openssh-server
Arch       : i386
Version    : 4.3p2
Release    : 72.el5_6.3
Size       : 273 k
Repo       : updates
Summary    : The OpenSSH server daemon
URL        : http://www.openssh.com/portable.html
License    : BSD
Description: OpenSSH is a free version of SSH (Secure SHell), a program for logging
           : into and executing commands on a remote machine. This package contains
           : the secure shell daemon (sshd). The sshd daemon allows SSH clients to
           : securely connect to your SSH server. You also need to have the openssh
           : package installed.

OpenSSH の match 対応版を探したけど

無かった。

build しろって

http://blog.mizoshiri.com/archives/971
http://centossrv.com/openssh.shtml

build した方が良いみたい rpmbuild のSPECファイルはopen-ssh が用意してるから簡単で良いです.