General discussion


SSH in solaris

By rumbiles ·
have a solaris 9 server on which i want to activate ssh. all the documentation i have says to download the required packages from the internet but i understand solaris 9 already has those packages(or am i wrong?).how do i access those packages and also those for sunscreen 3.2. during installation i chose to install everything.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by jmgarvin In reply to SSH in solaris
Collapse -

by sarahmeggs In reply to SSH in solaris

pkginfo |grep -i ssh

There is a great site for lots of solaris freeware from which you will be able to download the package if you need to.

If not found in pkginfo, simply locate ssh on sunfreeware site, download and install it (ssl will have to be installed also), then for each user do this:

su - <user>
cd ~<user> (if not already there)
mkdir .ssh
chmod 700 .ssh
ssh-keygen -tdsa
(follow prompts to set/not set passphrase, etc)

You should have files id_dsa and (or something similar) in ~<user>/.ssh now.

for each host you want to ssh to without password,do this:

Ensure user is setup on each remote host with same details
scp ~<user>/.ssh/ remotehost:/home/<user>/.ssh/<somefilename>
Then go to remote host as that user:
ssh <remote host>

cat ~<user>/.ssh/<somefilename> >> ~<user>/.ssh/authorized_keys
chmod 700 ~<user>/.ssh/authorized_keys

Then test your ssh access

Related Discussions

Related Forums