passwordless SSH

Robbo ml at the-view.eclipse.co.uk
Thu Apr 7 19:40:37 UTC 2005


On Thu, 2005-04-07 at 01:28 +0100, Soo-Hyun Choi wrote:
> Hi,
> 
> I'm trying to set up a passwordless environment in my office. What I
> did is as follows:
> 
> $ ssh-keygen -t rsa
> $ cd .ssh
> $ cat *.pub >> authorized_keys
> $ scp authrozed_keys <my_user_id>@<remote_machine>:./.ssh
> 
> Then, if I do ssh, it will keep asking me a passphrase which I set it
> during the ssh key generation process.
> 
> $ ssh <remote_machine>
> Enter passphrase for key '/home/my_id/.ssh/id_rsa':
> 
> 
> How do I avoid keep typing the passphrase whenever I do ssh?

Apart from ssh-agent which other's have suggested. If you don't enter a
passphrase when creating the key it won't ask for one - good for
scripting, etc.

Also if your looking for a single sign on, so Email / Web servers / SSH
servers don't ask for passwords when using - like a Windows AD
enviroment have a look at Kerberos & LDAP.





More information about the ubuntu-users mailing list