So you can get to Solaris but not to Linux? Or vice-versa? Ugh! Have you got all the host names and addresses in
/etc/hosts,
sshd running, have you tried stopping
ssh and restarting it (using the "S99" or "rc" file in the init directory)? If you edited
/etc/services did you either reboot the machine or stop and restart services?
Best I can tell you is to look at the documentation for the box (Solaris can be different than Linux in some installations) and see if there's something you may have missed; e.g., when you ran
ssh-keygen on Solaris, where did it say it was putting the files?
Once you've got both sides working; you can make your life easier if you take a look at
Eleven SSH Tricks (
http://www.linuxjournal.com/article/6602), an excellent article from
Linux Journal, August, 2003. It's an easy-to-follow guide to getting SSH more... usable, let's say.
One easy one is what to do with those keys you generated.
When you ran
ssh-keygen, you got two files in the
.ssh directory:
id_dsa and
id_dsa.pub (or
_rsa or whatever, all the same thing). Let's say that you did this on a machine named
alpha and you want to communicate with a machine named
beta.
Code:
log in alpha
cd .ssh
cp id_dsa.pub alpha
ssh beta
<beta's password>
cd .ssh
sftp alpha
<alpha's password>
cd .ssh
get alpha
^D (exits from alpha)
cat alpha >> authorized_keys
<while we're here, might as well do this one>
cp id_dsa.pub beta
^D (exits from beta; you're back on alpha)
sftp beta
cd .ssh
get beta
^D (exits from beta)
cat beta >> authorized_keys
What all that does is copy the public key from alpha to beta (and vice versa) so you can simply connect from one to the other without a password; "connect" means
ssh, scp, sftp and so on. You can do this on every machine that you want to trust; just copy the .pub file to a file named the machine name (so you can keep 'em straight), copy that file to the other machine(s)
.ssh directory and append it to the
authorized_keys file.
You probably do not need to mess with the SSH configuration file in /etc (if it works, you're good to go, don't mess with it). But, it's convenient to have, oh, a little more convenient way of connecting and have services available. You make a
config file in the
.ssh directory (this is described in the article link above).
Let's say you're on
alpha and want to connect to
beta. Let's say that your user name on
alpha is "fred" and your user name on
beta is "freddy." Oh, yeah, you want X-11 services, too.
Make a
config file in
.ssh on
alpha:
Code:
Host beta
ForwardX11 yes
Compression yes
Protocol 2,1
User freddy
Host other_host
...
You can add as many entries to this as you like (and, maybe, some additional options) and as long as you've done the magic public key in
authorized_key, you simply
ssh servername and
viola!
Hope this helps some.