General discussion

Locked

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.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by jmgarvin In reply to SSH in solaris

Don't go and use google, that might help:
http://www.sun.com/blueprints/0102/configssh.pdf

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.

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 - <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 id_dsa.pub (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/id_dsa.pub 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

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums