Operating System - HP-UX
1748123 Members
3180 Online
108758 Solutions
New Discussion

Re: Upgrade SSH version Hp unix 11.31

 
billa07
Occasional Advisor

Upgrade SSH version Hp unix 11.31

Hi

After upgrade the SSH version in HP ux 11.31 , i am unable to see the latest version using ssh -V

do we need to remove the older version or how we can enable the newer installed  version.

will it affect any services when upgrading the version.?

 

 

 

 

 

 

4 REPLIES 4
Steven Schweda
Honored Contributor

Re: Upgrade SSH version Hp unix 11.31

> After upgrade the SSH version in HP ux 11.31 ,

   What, exactly, did you do in this "upgrade"?  What was the SSH
version before?  What do you think that you installed?

> i am unable to see the latest version using ssh -V

   "I am unable" is not a useful problem description.  As usual, showing
actual commands with their actual output can be more helpful than vague
descriptions or interpretations.  In this case, "ssh -V".

> do we need to remove the older version

   Not likely.

> or how we can enable the newer installed version.

   What is "the older version"?  What, exactly, did you install?  What,
exactly are you running?

      type ssh
       ssh -V

> will it affect any services when upgrading the version.?

   Define "any services".

billa07
Occasional Advisor

Re: Upgrade SSH version Hp unix 11.31

After upgrade the SSH version in HP ux 11.31 , What, exactly, did you do in this "upgrade"? What was the SSH version before? What do you think that you installed?
 old version - Secure_Shell A.05.80.004
Installing via swinstall -s /tmp/ssh depot

 It seems not installed properly ,I can see below errors from the logs
ERROR: The dependencies for fileset
ERROR: Exclude Secure_Shell.SECURE_SHELL,r=A.06.20.030 ERROR: 1 of 2 filesets had
Errors. * 1 of 2 filesets had no Errors or Warnings.
ERROR: The Analysis Phase had errors. See the above output for
ERROR: could not generate ECDSA host key
ERROR: The "configure" script for "Secure_Shell.SECSH-CMN" failed * This script had errors and the execution of this fileset
ERROR: Installed Secure_Shell.SECSH-CMN,r=A.06.20.030
ERROR: Skipped (in analysis) Secure_Shell.SECURE_SHELL,r=A.06.20.030 ERROR: 2 of 2 filesets had Errors.
ERROR: The Execution Phase had errors. See the above output fo
 
will it affect any services when upgrading the version.?
connectivity between the application and database.

sapoguheman
Frequent Advisor

Re: Upgrade SSH version Hp unix 11.31

First Configure the unconfigured filesets.

Check unconfigured fileset using : swlist -l fileset -a state | grep -E -v '^#|conf'

IF you see any unconfigured fileset configure it using:  swconfig <fileset name>

 

 

Check the link for SSH if it is pointing to the latest version.
[root@XYZ ./bin]# whereis ssh
ssh: /usr/bin/ssh /opt/ssh/bin/ssh /opt/ssh/share/man/man1/ssh.1
[root@XYZ./bin]# which ssh
/usr/bin/ssh


Check the links ....
# 1 . [root@XYZ ./bin]# ls -l /usr/bin/ssh
lrwxr-xr-x 1 root sys 16 Nov 4 2014 /usr/bin/ssh -> /opt/ssh/bin/ssh

#2. [root@XYZ ./bin]# ls -l /opt/ssh/bin/ssh
lrwxr-xr-x 1 root sys 23 Jan 14 2015 /opt/ssh/bin/ssh -> /opt/ssh/hpux64/bin/ssh

#3. [root@XYZ ./bin]# ls -l /opt/ssh/hpux64/bin/ssh
-rwxr-xr-x 1 bin bin 1330744 Sep 5 2014 /opt/ssh/hpux64/bin/ssh

 

/opt/ssh/bin/ssh -V

Bill Hassell
Honored Contributor

Re: Upgrade SSH version Hp unix 11.31

In addition to Steven's comments, you may have other copies of ssh installed, possibly without the benefit of Software Distributor (swinstall). Open source copies do not often install in /opt and won't be displayed with swlist. Run this search to see if there are other copies of ssh scattered throughout your system:

find /opt /usr/local /usr/contrib -name ssh -exec ll -d {} \;

When you type the command: ssh
you are locating the program using the current contents of $PATH.
The type command shows you the first location in $PATH where ssh was located.
Other locations may exist which is why you'll need to cleanup the unwanted installs.
Note that some of the ssh items might be links to other locations.



Bill Hassell, sysadmin