Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-30-2004, 04:32 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 4

Rep: Reputation: 0
Unhappy Upgrading from an older version of openssh

I downloaded the latest version of open ssh since my server was running an older one and i went through all the installation process but for some reason when i issue the command ssh -V the result i get is the older version. Here is my question how can i change this so i know i'm running the new version and not the old one also since is been upgraded i want to get rid off the old one.

Thank You for any help you guys can provide.
Old 09-30-2004, 05:45 PM   #2
Registered: Sep 2004
Location: New Zealand
Distribution: Debian
Posts: 900

Rep: Reputation: 33
How did you install the new version? From a package, or from a source tarball?
Old 09-30-2004, 06:11 PM   #3
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
More to the point, the source tarball (if you downloaded from always installs to the same place, but if the original system came with OpenSSH or had it installed as a package, it could be in a different place. If the old OpenSSH is in a directory that's in your path before the directory where the newly built OpenSSH was installed, that's why you're still getting the old one.

This is why it is generally not advisable to compile software from source. You should use pre-packaged software for your own OS if at all possible. If a new version is not available in package format, then you should change the ./configure arguments to make the prefix for your source build point to the same prefix where the older binaries are installed, that way they will be overwritten.

PS, generally when you install a new version of OpenSSH it also requires a new version of OpenSSL to be built and/or installed as well.
Old 10-01-2004, 09:38 AM   #4
LQ Newbie
Registered: Sep 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Upgrading from an older version of openssh

Well the person that was taking care of this server is not here anymore so my guess is that the older version was installed as a package since the server is running red hat 8.
Thank you so much for the quick response also i downloaded from as a tarball and i did the ./configure , make and make install
my problem is that i can't find the path that point to the old version i'm sure that the file can be edited so i can change the path to new version so if one of you guys know where to look for this can you please tell me, i came from the windows world but i got tired of it not more wintendo for me hopefully i will never regret steping into the world of linux.

Thank you kindly
Old 10-01-2004, 11:27 AM   #5
Senior Member
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
$ which sshd
$ which ssh
$ which ssh-keygen
$ which scp
$ which sftp

I would highly recommend re-installing from package or recompiling with the correct path. It's quite possible that there are a number of scripts on the system that depend on SSH being right where the original installation put it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to hide OpenSSH version ? crud Slackware 8 06-16-2005 12:54 PM
Upgrading from older version to newer Perquisitor Linux - Newbie 1 01-20-2005 02:58 PM
need help upgrading openssh 3.7.1p1.*rpm joesbox Linux - Security 7 03-16-2004 08:27 PM
Upgrading OpenSSH in RH 7.3? german Linux - Software 1 10-05-2003 02:25 PM
upgrading to openssh 3.5 cuss Linux - Security 8 12-12-2002 11:08 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration