cancel
Showing results for 
Search instead for 
Did you mean: 

ssh -V version issue.

SOLVED
Go to solution
Harikrishnan L
Frequent Advisor

ssh -V version issue.

Hi Friends,

I am facing the ssh version issue after installed the ssh and ssl packages. I installed the below version of openssl and ssh
but it shows different version.

# swlist | grep open
openssh 5.5p1 openssh
openssl 1.0.0a openssl
# ssh -V
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version
# uname -r
B.11.31
# uname -m
ia64

# ls -1 --> installed depot names
openssh-5.5p1-ia64-11.31.depot
openssl-1.0.0a-ia64-11.31.depot
#
5 REPLIES
Steven Schweda
Honored Contributor
Solution

Re: ssh -V version issue.

It's interesting that you have _installed_
OpenSSH (somewhere -- Where?), but what are
you _running_ with your "ssh" command?

type ssh
or:
which ssh

Also consider:
echo $PATH

> # swlist | grep open

Did you try anything like these?:

swlist | grep -i ssh
or:
swlist | grep -i ssl
or:
swlist | grep -i secure

Many things are possible.


> OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep 2006
> HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version

Not the latest version.

https://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

Are you worried about the "OpenSSL 0.9.7l" in
there? That's what was used to build that
HP-UX Secure Shell program. You can install
something else on your system, but that HP-UX
Secure Shell program will still use the
OpenSSL kit with which it was built. (The
OpenSSL API is not stable enough to let a
user mix a new version of OpenSSL with any
old application program.)
Steven Schweda
Honored Contributor

Re: ssh -V version issue.

> Not the latest version.

Around here, by the way, ...

dyi # uname -a
HP-UX dyi B.11.31 U ia64 4235313755 unlimited-user license

dyi # ssh -V
OpenSSH_5.5p1+sftpfilecontrol-v1.3-hpn13v7, OpenSSL 0.9.8k 25 Mar 2009
HP-UX Secure Shell-A.05.50.015, HP-UX Secure Shell version

dyi # swlist | grep -i secure
OpenSSL A.00.09.08k.009 Secure Network Communications Protocol
SecureShell A.05.50.015 HP-UX Secure Shell

(That OpenSSL product is not especially new,
but the HP-UX Secure Shell product is quite
current.)
Harikrishnan L
Frequent Advisor

Re: ssh -V version issue.

Hi Thanks for info and support.

I solved this issue with the following stop. But i don't know this is the correct solution for this issue.

1.
Install zlib, ssl and ssh using sam
#swinstall -s hostname:/glotam/itadmin/ssh/ zlib-1.2.5-ia64-11.31.depot ï   install latest zlib on HP-UX
# swinstall -s hostname:/glotam/itadmin/ssh/openssl-1.0.0a-ia64-11.31.depot ï   install latest ssl on HP-UX
# swinstall -s hostname:/glotam/itadmin/ssh/openssh-5.5p1-ia64-11.31.depot ï   install latest ssh on HP-UX


2.
# cd /sbin/init.d
#cp secsh secsh.old
HP-UX Secure Shell stoped

3.
#chmod 755 secsh

4.
#vi secsh
Change the ssh path to the new openssh installed path.
Example:
#WHAT_PATH=/opt/ssh/sbin/sshd
WHAT_PATH=/usr/local/sbin/sshd


#ps -ef | grep "/ opt/ssh/sbin/sshd " | grep -v grep > /dev/null
ps -ef | grep "/usr/local/sbin/sshd" | grep -v grep > /dev/null

5.
# cd /sbin/init.d
# ./sbin/init.d/secsh stop

6.
# cd /sbin/init.d
# ./sbin/init.d/secsh start
Could not load host key: /usr/local/etc/ssh_host_rsa_key
Could not load host key: /usr/local/etc/ssh_host_dsa_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
EXIT CODE: 1

7.
# cd /usr/local/bin
# ssh-host-key-setup
/usr/local/etc/ssh_host_rsa_key and /usr/local/etc/ssh_host_rsa_key.pub generated successfully
#

8.
# chmod 755 /sbin/init.d/secsh
# ls -l /sbin/init.d/secsh
-r-xr-xr-x 1 bin bin 2676 Aug 2 15:22 /sbin/init.d/secsh

9.
# cd /sbin/init.d
# ./secsh start
HP-UX Secure Shell started
#

10.
#ps â eaf|grep sshd
root 26622 1 0 15:28:03 ? 0:00 /usr/local/sbin/sshd

Thanks and Reagrds,

Harikrishnan.L
System Administrator
Steven Schweda
Honored Contributor

Re: ssh -V version issue.

> I solved this issue with the following
> stop. But i don't know this is the correct
> solution for this issue.

Whether it's the correct solution may depend
on what you thought that your "issue" was.
It's not clear to me exactly what you were
trying to do.

If you install new versions of OpenSSL and
OpenSSH, and then you run some other program
(HP's HP-UX Secure Shell), then I am not
amazed that the version numbers shown by this
other program are different from the version
numbers of your new OpenSSL and OpenSSH kits.

> # ssh -V

That's an SSH client.

> WHAT_PATH=/usr/local/sbin/sshd

That's an SSH server.


> # cd /usr/local/bin
> # ssh-host-key-setup

You might have been able to copy your old
host key files into the new location.
Clients may emit warnings if they see
different host key data from a familiar
system.
Steven E. Protter
Exalted Contributor

Re: ssh -V version issue.

Shalom,

What I find interesting is that openssl 1.0 is floating around in any form, after YEARS of being below version 1.0.

In this contect, I would go with the latest available for openssl and secure shell (openssh) from http://software.hp.com and call it a day.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com