Right - to do this you need to generate a DSA key on the source machine, and
put it on the target machine in ~/.ssh/authorized_keys
1) On the source machine (the one that initiates the ssh) run
ssh-keygen dsa
As the user who will be running the command,
2) accept the default choices, and have no passphrase.
3) now check the .ssh dir in your home directory. There will be a file
called id_dsa.pub
Inside, it should have a single line like this:
ssh-dss
AAB3NzaC1kc3MAAACBAKHBOQEFKLtRoKjdkdNybwHjLthItkvFF5Bo9YlGPqpwjmEnV7GQKdCBzN
XE3mOOOMJo3OyI5W6cTMidM377HBous0K4xhn3UlBLxFYe68RPPJNiB/zRiUIctr81plLmWgPpa2
uYDfUtUr1e/yAgWrl3O5gX7aaGY1BIPfAAA3M2uYGDxMsGqS6XELrHHQAAAIB/OSP5hd1TC8Fi1u
J0vWcVVLI3Im3bthB8WchA7kJFH/8F1kzVXmQezGb3578i/f2fv6sHPY8zP6k2JnDCTcUsQYYfDb
NvR2JP1uFYhMukiuaCHC5I+C+Uuc+dqQeQF93d9imTN4Ee3oksXD7JWrd5XuET6CvQKdKSDAAAAI
d1jOJac= [EMAIL PROTECTED]
You need to copy the line from that file to ~/.ssh/authorized_keys (note the
americanizaychun) on the target machine. Again, which user is important.
Notes) There are utils for copying this information to the target machine,
but I found them to be unreliable.
The first time you ssh to the machine you will still be prompted "the key
XX:XX.... Is not recognised, Do you want to add it to known_hosts?" or
something like that.
-----Original Message-----
From: G Chinnery [mailto:[EMAIL PROTECTED]
Sent: Thursday, 17 June 2004 3:52 a.m.
To: [EMAIL PROTECTED]
Subject: SSH *8-(
I know I am a bit of a newbie and I have only just started with SSH due
to upgrading my Distro to Mandrake 8.1 then 10.0.
But SSH makes life very difficult.
So far I have followed the instructions from the web pages given to me
and still I can't access any of my boxes with out having to give a password.
And as for my web scripts those don't work at all. I have run them in a
shell and when the script asks for the password
from a server, I type in the password and it won't even let me in full stop.
I would rather use SSH than have to install rsh to get this working, so
any ideas???
G.Chinnery.