Opps sorry about hijacking a thread.
I will try that and see how I get on.
thanks.
steve wrote:
G Chinnery wrote:
Hello. I am new to the list and have a problem I hope someone can
help me with please.
I have 5 servers running mandrake 8.1 ( just upgraded from 6.1) and I
am having problems with some web scripts I have.
on my old system the scripts used rsh -l username to log into the
other servers to get info.
now I have to use ssh and I can't get it to work with out asking for
a password and breaking the script.
can someone explain how ssh can login to another server with out a
password given???
Thanks for any help.
G Chinnery.
apart from the flack that the more a*al of the list are going to send
you about hijacking threads... (:
You need to use ssh-keygen. use the man/info pages on these as to how
you need to set them up.
Off the top of my head...
On the machine that you want to start from, logged in as the user that
you want to connect as...
ssh-keygen -d dsa
gives you ( eventually ) a private and public key, located in $HOME/.ssh
copy the public key to a file called authorized_keys on the target
machin/user pair in the same $HOME/.ssh directory.
After the first time that you attempt to log in, when it adds you to
the known hosts, no password is required. ssh [EMAIL PROTECTED] gets you
straight there, and you can add a remote command after a -c on the end
if you wish.
hth,
Steve