Question:
How to make rsh or ssh password free in linux?
sangamesh c
2007-05-14 01:02:52 UTC
I am doing Parallel Programming with MPI. To rum mpd's on the nodes it is needed to make rsh or ssh( secured shell) password free. So how to make it?
Three answers:
mbishop1113
2007-05-14 04:48:20 UTC
I had to do this for my Novell CLP.



ssh-keygen -t rsa

Generating public/private rsa key pair.

Enter file in which to save the key (/home/cantin/.ssh/id_rsa):

Enter passphrase (empty for no passphrase):

Enter same passphrase again:

Your identification has been saved in /home/cantin/.ssh/id_rsa.

Your public key has been saved in /home/cantin/.ssh/id_rsa.pub.

The key fingerprint is:

f6:61:a8:27:35:cf:4c:6d:13:22:70:cf:4c:c8:a0:23 cantin@sodium



The command ssh-keygen -t rsa initiated the creation of the key pair.



No passphrase was entered (Enter key was pressed instead).



The private key was saved in .ssh/id_rsa. This file is read-only and only for you. No one else must see the content of that file, as it is used to decrypt all correspondence encrypted with the public key.



The public key is save in .ssh/id_rsa.pub.



It is one line in length.



Its content is then copied in file .ssh/authorized_keys of the system you wish to SSH to without being prompted for a password.
2007-05-14 02:43:34 UTC
As the normal user on the server end use the ssh-keygen (use man ssh-keygen for details) which typed alone produces a simple help list. When used with the appropriate switches it will generate the public and private keys. It will tell you the file names. Do NOT use a passphrase, just hit enter at each request. Copy the private key to your client machine's /home/yourname/.ssh

This gives non-interactive login. The man age is very detailed there are several options available.
?
2016-05-17 16:13:44 UTC
SSH is not a web server protocol lol You can install an opensource package, openssh, however this will not add linux commands to XP -- you can use DOS commands via the telnet shell (secured by SSH) though.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...