Here's what is happening when I execute the code:
rpm -qa | grep ssh && yum -y install gcc automake autoconf libtool make openssl-devel pam-devel rpm-build && wget
http://ftp.halifax.rwth-aachen.de/openb ... 0p1.tar.gz && wget
http://ftp.halifax.rwth-aachen.de/openb ... tar.gz.asc && wget -O-
http://ftp.halifax.rwth-aachen.de/openb ... PG-KEY.asc | gpg --import && gpg openssh-6.0p1.tar.gz.asc && tar zxvf openssh-6.0p1.tar.gz && cp openssh-6.0p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/ && cp openssh-6.0p1.tar.gz /usr/src/redhat/SOURCES/ && cd /usr/src/redhat/SPECS/ && perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec && rpmbuild -bb openssh.spec && cd /usr/src/redhat/RPMS/`uname -i` && uname -i && ls -l && rpm -Uvh openssh*rpm openssh-4.3p2-82.el56.0p1.tar.gz.asc && tar zxvf openssh-6.0p1.tar.gz && cp ope openssh-clients-4.3p2-82.el5enssh.spec /usr/src/redhat/SPECS/ && cp openssh-6.0p openssh-server-4.3p2-82.el5URCES/ && cd /usr/src/redhat/SPECS/ && perl -i.bak -p Loaded plugins: fastestmirror_askpass)\s+0$/$1 1/' openssh.spec && rpmbuild -bb Loading mirror speeds from cached hostfileuname -i` && uname -i && ls -l && rpm * base: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* updates: mirrors.coreix.net
Setting up Install Process
Package gcc-4.1.2-52.el5.x86_64 already installed and latest version
Package automake-1.9.6-2.3.el5.noarch already installed and latest version
Package autoconf-2.59-12.noarch already installed and latest version
Package libtool-1.5.22-7.el5_4.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.1.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.1.i386 already installed and latest version
Package pam-devel-0.99.6.2-6.el5_5.2.x86_64 already installed and latest version
Package pam-devel-0.99.6.2-6.el5_5.2.i386 already installed and latest version
Package rpm-build-4.4.2.3-28.el5_8.x86_64 already installed and latest version
Nothing to do
--2012-04-23 12:22:03--
http://ftp.halifax.rwth-aachen.de/openb ... 0p1.tar.gz
Resolving ftp.halifax.rwth-aachen.de... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de|137.226.34.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1126034 (1.1M) [application/octet-stream]
Saving to: `openssh-6.0p1.tar.gz'
100%[==============================================================================================================================>] 1,126,034 4.58M/s in 0.2s
2012-04-23 12:22:03 (4.58 MB/s) - `openssh-6.0p1.tar.gz' saved [1126034/1126034]
--2012-04-23 12:22:04--
http://ftp.halifax.rwth-aachen.de/openb ... tar.gz.asc
Resolving ftp.halifax.rwth-aachen.de... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de|137.226.34.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 188 [application/octet-stream]
Saving to: `openssh-6.0p1.tar.gz.asc'
100%[==============================================================================================================================>] 188 --.-K/s in 0s
2012-04-23 12:22:04 (8.08 MB/s) - `openssh-6.0p1.tar.gz.asc' saved [188/188]
-bash: gpg: command not found
--2012-04-23 12:22:04--
http://ftp.halifax.rwth-aachen.de/openb ... PG-KEY.asc
Resolving ftp.halifax.rwth-aachen.de... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de|137.226.34.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1725 (1.7K) [application/octet-stream]
Saving to: `STDOUT'
0% [ ] 0 --.-K/s in 0s
Cannot write to `-' (Broken pipe).
[root@hostname ~]#
2) I also tried adding the mirror listed in
http://mirror.neu.edu.cn/CentALT/readme.txt
rpm -ihv
http://download.fedora.redhat.com/pub/e ... noarch.rpm
Retrieving
http://download.fedora.redhat.com/pub/e ... noarch.rpm
error: skipping
http://download.fedora.redhat.com/pub/e ... noarch.rpm - transfer failed - Unknown or unexpected error
3) yum update
Finished Dependency Resolution
openssh-clients-5.8p2-16.el5.1.x86_64 from CentALT has depsolving problems
--> Missing Dependency: libedit.so.0()(64bit) is needed by package openssh-clients-5.8p2-16.el5.1.x86_64 (CentALT)
Error: Missing Dependency: libedit.so.0()(64bit) is needed by package openssh-clients-5.8p2-16.el5.1.x86_64 (CentALT)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
Typo wrote:
Avinash.Rao wrote:
You are right, I finished the update and the version is the same!
Ok, the following is from a random website but I updated the instructions for the latest version of openssh available (6.0).
Quote:
How to install openssh 5 on Centos 5
Execute this in shellCode:
rpm -qa | grep ssh && yum -y install gcc automake autoconf libtool make openssl-devel pam-devel rpm-build && wget http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/openssh-6.0p1.tar.gz && wget http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/openssh-6.0p1.tar.gz.asc && wget -O- http://ftp.halifax.rwth-aachen.de/openbsd/OpenSSH/portable/DJM-GPG-KEY.asc | gpg --import && gpg openssh-6.0p1.tar.gz.asc && tar zxvf openssh-6.0p1.tar.gz && cp openssh-6.0p1/contrib/redhat/openssh.spec /usr/src/redhat/SPECS/ && cp openssh-6.0p1.tar.gz /usr/src/redhat/SOURCES/ && cd /usr/src/redhat/SPECS/ && perl -i.bak -pe 's/^(%define no_(gnome|x11)_askpass)\s+0$/$1 1/' openssh.spec && rpmbuild -bb openssh.spec && cd /usr/src/redhat/RPMS/`uname -i` && uname -i && ls -l && rpm -Uvh openssh*rpm
Confirm the installationCode:
rpm -qa | grep ssh
I take no responsibility for how well the above works, I did not make it but found it from
this site and did minor editing (5.6 to 6.0) for you.
Let me know how it goes.
p.s. There are other sites with info on building openssh for centos so if this fails, dont give up.