Discussion Locked

SSH in solaris

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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.

2 replies

by sarahmeggs

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.

http://www.sunfreeware.com/

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 -
cd ~ (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 id_dsa.pub (or something similar) in ~/.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 ~/.ssh/id_dsa.pub remotehost:/home//.ssh/
Then go to remote host as that user:
ssh

cat ~/.ssh/ >> ~/.ssh/authorized_keys
chmod 700 ~/.ssh/authorized_keys

Then test your ssh access

This discussion is closed to new replies.