Hi,
    It goes like this.
    You want alice (user 1) to login automatically from neptune (machine 1)
to pluto (machine 2) under the security of jenny (user 2).
1. login into neptune as alice.
2. type 'ssh-keygen -t dsa'
3. answer all the questions sensibly, remember the location where you store
the keys.
4. after ssh-keygen as finished, goto the folder where you stored the
generated keys.
5. there are two parts to the key, (if you chose default in step 3 ) id_dsa
and id_dsa.pub (id_dsa is your private key, id_dsa.pub is the public key)
6. copy id_dsa.pub to pluto and copy it folder .ssh (notice the dot) under
jenny's home folder as authorized_keys2, if authorized_keys2 already exists,
append the contents of id_dsa.pub to that file. i.e. cat id_dsa.pub >
/home/jenny/.ssh/authorized_keys2
7. now try logging into pluto as jenny from alice's account on neptune (
[EMAIL PROTECTED] ssh [EMAIL PROTECTED] )
this should throw you in without asking for password.

what basically happened was that we generated a key for alice and added
alice's public key to jenny's authorized_keys2 file.

I hope this helps. You can experiment more by using different kinds of keys
of different strengths, etc. ..

-js


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
>
> Hi,
>              How to configure ssh in Linux 9 so that user A can ssh
machine B
> without giving the password.
>
>
>
>
> Regards
>
> Rajat




_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to