saving passwords in the terminal for ssh

I use ssh a lot through the terminal to connect to over 100 servers. When I create a new server through the terminal 'connect to server' is there a way I can make it remember the root or user passwords for each server? Trying to keep track of them all and constantly having to relogin makes it tedious.

Thanks

g5, Mac OS X (10.4.3)

Posted on Jan 7, 2006 2:14 PM

Reply
1 reply

Jan 7, 2006 2:59 PM in response to matt kelly1

ssh has exactly what you need. From the man ssh page:

ssh implements the RSA authentication protocol automatically. The user creates his/her RSA key pair by running ssh-keygen(1). This stores the
private key in $HOME/.ssh/identity and stores the public key in $HOME/.ssh/identity.pub in the user's home directory. The user should then copy the identity.pub to $HOME/.ssh/authorized_keys in his/her home
directory on the remote machine (the authorized_keys file corresponds to
the conventional $HOME/.rhosts file, and has one key per line, though the
lines can be very long). After this, the user can log in without giving
the password.


You'll need to read through the man pages for more detail, but it is quite straighforward.

G4/466, eMac 800, iBook 1.33 Mac OS X (10.4.3)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

saving passwords in the terminal for ssh

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.