On Tue, Jun 20, 2000 at 04:16:42PM -0800, Britton wrote > > I need to figure out how to set up ssh in such a way that ssh can be used > without the user needing to enter a password. I apparently don't > understand the required format of the .shosts command to achieve this. I > have also used ssh-keygen, placed my public key in the auhtorized_keys > file, started an agent (ssh-agent $SHELL) and used ssh-add to add my > identity to the authentication agent, but doing > > ssh localhost > > still requires me to enter a password. If anyone has a valid .shosts file > I would greatly appreciate a snipping showing how they have it set up, or > a pointer to an example file (which I havn't been able to find in the > docs). >
Make sure that sshd is configured to allow RSAA authentication on the target machine: look for a line like RSAAuthentication yes in /etc/ssh/sshd_config. If that's set then all you need is to generate a key pair using ssh-keygen on the host you're connecting from, and place that key into ~/.ssh/authorized_keys on the host you're connecting to. No .shosts or ssh-agent required. If you want your users to login silently, don't specify a passphrase when running ssh-keygen. John P. -- [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.mdt.net.au/~john Debian Linux admin & support:technical services