Thursday, 4 July 2013

Installing openssh 5.8


Installing openssh 5.8


Here are instructions on how to install or upgrade to openssh 5.8

1) Download openssl and openssh from the following link
You will have to register at the site if you do not have an account.
select 5.8
Download: OpenSSH_5.8.0.6102.tar.Z
select 9.8.X
Download: openssl-
On your AIX system.

2) Create directory to hold openssl and openssh

# mkdir /tmp/newopenssh5.8

ftp the openssh compressed tar file to the above directory

3) Prepare the software for installation

# cd /tmp/newopenssh5.8
# gunzip *.Z
# tar -xvf OpenSSH_5.8.0.6102.tar
# tar -xvf openssl-
# cd openssl-
# ls
# openssl.base openssl.license
# mv openssl.* ..
# cd ..
# mv *.tar /tmp

4) Backup the /etc/ssh directory if it exists

NOTE: If you have an existing ssh configuration please make a copy of the /etc/ssh directory before installing the new ssh to preserve the ssh host keys. If this is a new installation there's no need to back up /etc/ssh.
# cp -pr /etc/ssh /etc/ssh-backup


# smitty install_all
* INPUT device / directory for software [.] (note a period)
SOFTWARE to install []
select filesets using F7
openssh.base, openssh.license,,
openssl.base ,openssl.license, and filesets.
Enter yes to accept license agreement

6) Verify that sshd is active

The sshd daemon should automatically start after installation has
# ps -ef|grep sshd
sshd should be running.
# lssrc -g ssh
ssh should be active.


NOTE: After the ssh upgrade, perform the following steps only if you had an initial working ssh configuration:
# cd /etc/ssh
# mv ssh_config ssh_config.orig
# mv sshd_config sshd_config.orig
# cd /etc/ssh-backup
# cp -pr * /etc/ssh/
# cd /etc/ssh
# mv sshd_config.orig sshd_config
# mv ssh_config.orig ssh_config
# stopsrc -g ssh
# startsrc -g ssh
# lssrc -g ssh
sshd should be active 

0 blogger-disqus:

Post a Comment