[ale] SSH password
James CE Johnson
jcej at tragus.org
Thu Feb 7 20:36:38 EST 2002
>
> Is there any way to store a password to a certain host in a config
> file such that you can ssh to that host without specifying a password??
Sure. Use ssh-keygen to generate your public/private key but don't
put a passphrase on 'em. Then put the contents of identity.pub into
~/.ssh/authorized_keys on every system you want to login to.
machineA> ssh-keygen
machineA> scp ~/.ssh/identity.pub machineB:.ssh/machineA.pub
machineA> ssh machineB # Password required
machineB> cat .ssh/machineA.pub >> .ssh/authorized_keys
machineB> chmod 700 .ssh
machineB> chmod 644 .ssh/authorized_keys
machineB> chmod 644 .ssh/*.pub
machineB> logout
machineA> ssh machineB # Password not required
This should work if you're using OpenSSH and if I haven't
forgotten something. The ssh-keygen manpage should get you
through.
>
> Mark
>
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list