Enable ssh in Solaris Legacy os Versions 6, 7, 8 or 9
Issue :
Solaris 9 and below versions do not have ssh installed, This is a headache for those who are new to Solaris administration and not familiar with Solaris 9 and below or Legacy Solaris OS's
Goal :
Install the ssh and supporting packages to enable ssh in Solaris 7, 8, 9 servers.
The required packages are :
openssh
openssl (SSL)
prngd (Psuedo Random Generator Daemon)
zlib (Z library)
All of the required packages are availble to download in the below google drive link.
Solution :
1. Download the sshpkgs.sol8.tar.gz bundle and readme file from google drive
OR
Package website link - http://spout.ussg.indiana.edu/solaris/sparc/
Download the packages openssh , openssl (SSL) , prngd , zlib (Z library)
2. Extract the package bundle
# gzip -d sshpkgs.sol8.tar.gz ; tar -xvf sshpkgs.sol8.tar
3. Install the openssl package
# pkgadd -d openssl-0.9.6c-sol8-sparc-local
4. Install the prngd package
# pkgadd -d prngd-0.9.23-sol8-sparc-local
5. Install the zlib package
# pkgadd -d zlib-1.1.4-sol8-sparc-local
6. Install the openssh package
# pkgadd -d openssh-3.1p1-sol8-sparc-local
7. Create a startup script for the ssh daemon with below content
# vi /etc/init.d/sshd
#! /bin/sh
#
# start/stop the secure shell daemon
case "$1" in
'start')
# Start the ssh daemon
if [ -f /usr/local/sbin/sshd ]; then
echo "starting SSHD daemon"
/usr/local/sbin/sshd &
fi
;;
'stop')
# Stop the ssh deamon
PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep sshd | /usr/bin/awk '{print $1}'`
if [ ! -z "$PID" ] ; then
/usr/bin/kill ${PID} >/dev/null 2>&1
fi
;;
*)
echo "usage: /etc/init.d/sshd {start|stop}"
;;
esac
8. Make the script executable and create a startup script on run level 2
# chmod +x /etc/init.d/sshd
# ln -s /etc/init.d/sshd /etc/rc2.d/S99sshd
9. Create a startup script for the pseudo random generator daemon.
# vi /etc/init.d/prngd
#! /bin/sh
#
# start/stop the pseudo random generator daemon
case "$1" in
'start')
# Start the ssh daemon
if [ -f /usr/local/bin/prngd ]; then
echo "starting PRNG daemon"
/usr/local/bin/prngd /var/spool/prngd/pool&
fi
;;
'stop')
# Stop the ssh deamon
PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep prngd | /usr/bin/awk '{print $1}'`
if [ ! -z "$PID" ] ; then
/usr/bin/kill ${PID} >/dev/null 2>&1
fi
;;
*)
echo "usage: /etc/init.d/prngd {start|stop}"
;;
esac
10. Make the script executable and create a startup script on run level 2
# chmod +x /etc/init.d/prngd
# ln -s /etc/init.d/prngd /etc/rc2.d/S99prngd
11. Start the prngd sevice
# mkdir -p /var/spool/prngd
# /etc/init.d/prngd start
12. Create a public key pair to support the new, DSA-based version 2 protocol
# /usr/local/bin/ssh-keygen -d -f /usr/local/etc/ssh_host_dsa_key -N ""
14. Edit ssh daemon configuration file /usr/local/etc/sshd_config, enable protocol 2 and 1
Uncomment the line, that says
protocol 2,1
15. starting SSHD daemon
# /etc/init.d//sshd start
~Judi~
###Help
http://www.unixguide.net/sun/ssh_installation.shtml
###PKGS available under
http://spout.ussg.indiana.edu/solaris/freeware/sparc/5.8/
Issue :
Solaris 9 and below versions do not have ssh installed, This is a headache for those who are new to Solaris administration and not familiar with Solaris 9 and below or Legacy Solaris OS's
Goal :
Install the ssh and supporting packages to enable ssh in Solaris 7, 8, 9 servers.
The required packages are :
openssh
openssl (SSL)
prngd (Psuedo Random Generator Daemon)
zlib (Z library)
All of the required packages are availble to download in the below google drive link.
Solution :
1. Download the sshpkgs.sol8.tar.gz bundle and readme file from google drive
OR
Package website link - http://spout.ussg.indiana.edu/solaris/sparc/
Download the packages openssh , openssl (SSL) , prngd , zlib (Z library)
2. Extract the package bundle
# gzip -d sshpkgs.sol8.tar.gz ; tar -xvf sshpkgs.sol8.tar
3. Install the openssl package
# pkgadd -d openssl-0.9.6c-sol8-sparc-local
4. Install the prngd package
# pkgadd -d prngd-0.9.23-sol8-sparc-local
5. Install the zlib package
# pkgadd -d zlib-1.1.4-sol8-sparc-local
6. Install the openssh package
# pkgadd -d openssh-3.1p1-sol8-sparc-local
7. Create a startup script for the ssh daemon with below content
# vi /etc/init.d/sshd
#! /bin/sh
#
# start/stop the secure shell daemon
case "$1" in
'start')
# Start the ssh daemon
if [ -f /usr/local/sbin/sshd ]; then
echo "starting SSHD daemon"
/usr/local/sbin/sshd &
fi
;;
'stop')
# Stop the ssh deamon
PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep sshd | /usr/bin/awk '{print $1}'`
if [ ! -z "$PID" ] ; then
/usr/bin/kill ${PID} >/dev/null 2>&1
fi
;;
*)
echo "usage: /etc/init.d/sshd {start|stop}"
;;
esac
# chmod +x /etc/init.d/sshd
# ln -s /etc/init.d/sshd /etc/rc2.d/S99sshd
# vi /etc/init.d/prngd
#! /bin/sh
#
# start/stop the pseudo random generator daemon
case "$1" in
'start')
# Start the ssh daemon
if [ -f /usr/local/bin/prngd ]; then
echo "starting PRNG daemon"
/usr/local/bin/prngd /var/spool/prngd/pool&
fi
;;
'stop')
# Stop the ssh deamon
PID=`/usr/bin/ps -e -u 0 | /usr/bin/fgrep prngd | /usr/bin/awk '{print $1}'`
if [ ! -z "$PID" ] ; then
/usr/bin/kill ${PID} >/dev/null 2>&1
fi
;;
*)
echo "usage: /etc/init.d/prngd {start|stop}"
;;
esac
# chmod +x /etc/init.d/prngd
# ln -s /etc/init.d/prngd /etc/rc2.d/S99prngd
11. Start the prngd sevice
# mkdir -p /var/spool/prngd
# /etc/init.d/prngd start
12. Create a public key pair to support the new, DSA-based version 2 protocol
# /usr/local/bin/ssh-keygen -d -f /usr/local/etc/ssh_host_dsa_key -N ""
13. Create a public key pair to support the old, RSA-based version 1 protoco
# /usr/local/bin/ssh-keygen -b 1024 -f /usr/local/etc/ssh_host_rsa_key -t rsa -N ""14. Edit ssh daemon configuration file /usr/local/etc/sshd_config, enable protocol 2 and 1
Uncomment the line, that says
protocol 2,1
15. starting SSHD daemon
# /etc/init.d//sshd start
Your ssh server is now ready to accept a ssh session.
~Judi~
###Help
http://www.unixguide.net/sun/ssh_installation.shtml
###PKGS available under
http://spout.ussg.indiana.edu/solaris/freeware/sparc/5.8/