SSH : Mise en place du serveur SSH Solaris sur une installation minimale

From Deimos.fr / Bloc Notes Informatique
Jump to: navigation, search

If you need to manage a Solaris 10 box with a minimal install, and SSH is not available, you can install it off of the 2nd CD. Rather than figure out the path to your CDROM (see this article), it was easier in our case to just tar up the needed packages and FTP them to our Solaris box:

Command
[email protected] Product # cp -R SUNWsshcu SUNWsshdr SUNWsshdu SUNWsshr 
SUNWsshu /home/srv-1/sshpkg/
[email protected] Product # cd /home/srv-1/sshpkg/
[email protected] sshpkg # ls
SUNWsshcu  SUNWsshdr  SUNWsshdu  SUNWsshr  SUNWsshu
[email protected] sshpkg # tar -cf ../ssh.tar *
[email protected] sshpkg # tar -tf ../ssh.tar
SUNWsshcu/
SUNWsshcu/archive/
.
.
.
SUNWsshu/reloc/
SUNWsshu/reloc/usr/
SUNWsshu/reloc/usr/bin/
SUNWsshu/reloc/usr/lib/
SUNWsshu/reloc/usr/lib/ssh/
[email protected] sshpkg #

On the Solaris side, FTP these to /tmp, then from tmp:

Command
tar -xf ssh.tar
pkgadd -d .
svcadm enable ssh
svcadm restart ssh