fir3net
PPS-Firenetbanner-780.5x190-30-03-17

How to install SSH on Solaris 10 x86

This guide will show you how to install SSH on Solaris 10 x86 from the Solaris installation DVD.

Mount CD
If you havent enabled the feature that will automatically mount your CDROM drive you will need to mount it using the following commands : 

mkdir /cdrom

Find the name of your cdrom

-bash-3.00# iostat -En
c0d0             Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: VMware Virtual  Revision:  Serial No: 000000000000000 Size: 16.11GB <16106065920 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c1t0d0           Soft Errors: 3 Hard Errors: 0 Transport Errors: 0
Vendor: NECVMWar Product: VMware IDE CDR10 Revision: 1.00 Serial No:
Size: 2.56GB <2563440640 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 3 Predictive Failure Analysis: 0
-bash-3.00# mount -F hsfs -o ro /dev/dsk/c1t0d0s0 /cdrom

Install the packages

-bash-3.00# cd /
-bash-3.00# pkgadd -d /cdrom/Solaris_10/Product/  SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr SUNWsshu

Enable SSH

-bash-3.00#svcadm enable ssh
-bash-3.00# svcadm restart ssh


Additonal Notes 

You will not be able to log in via SSH using root unless you amend the sshd_config file and set "allow root login" to yes.

Tags: UNIX

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001