Pass SSH password automatically

Ron Herardian rherardi at gssnet.com
Sun Mar 28 13:10:55 UTC 2004


If you run ssh-keygen -t rsa1 that's right (copy identity.pub--default file name--to authorized_keys) but if you've run ssh-keygen -t dsa (it's a good idea to have all three keys, also -t rsa), then you might want to copy id_dsa.pub (default file name) to authorized_keys2. This only works without a password if there's no passphrase.

Ron


Dave Cross wrote:
> 
> On Sun, Mar 28, 2004 at 11:46:40AM +0100, Steve Searle wrote:
> > Many moons ago I set up my (then RH) Linux box to pass the current
> > password automatically when SSHing to another box.  If I was logged on
> > as steve, and I did "ssh myserver" it would take me straight to a shell
> > on myserver, logged on as steve, assuming the steve account on myserver
> > had the same password as the box I was coming from.  I was not asked for
> > the password.
> >
> > Does anyone know what I need to change to change my current setup to
> > work like this.
> 
> 1/ Use ssh-keygen to generate an ssh key.
> 2/ Copy the public part of the new key to the remote box
>    (it goes in ~/.ssh/authorized_keys)
> 
> At this stage you'll be prompted for the key's passphrase rather than
> the user's password when connecting to the remote box. To get rid of
> that, you'll need to be running ssh-agent.
> 
> 3/ Run "ssh-agent $SHELL" from the command line
> 4/ Run "ssh-add" from the command line - this will prompt you for
>    the key's passphrase
> 
> Now you shouldn't be prompted for the passphrase when you try to connect
> to any box that has your key installed.
> 
> See the docs at <http://openssh.org/manual.html> for more details.
> 
> Dave...
> 
> --
>   New .sigs
>   Running in please parse
> 
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

-- 

Global System Services Corporation (GSS)
650 Castro Street, Suite 120, Number 268, Mountain View, CA 94041, USA
+1 (650) 965-8669 phone, +1 (650) 965-8679 fax, +1 (650) 283-5241 mobile
rherardi at gssnet.com, http://www.gssnet.com

"The best way to predict your future is to create it." - Stephen Covey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rherardi.vcf
Type: text/x-vcard
Size: 1287 bytes
Desc: Card for Ron Herardian
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040328/fba3ea0f/attachment-0001.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2589 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040328/fba3ea0f/attachment-0001.bin>


More information about the fedora-list mailing list