[Gllug] Passwordless SSH

Tethys sta296 at astradyne.co.uk
Thu Aug 25 07:21:55 UTC 2005


James McGuigan writes:

>Is there any way of tricking ssh or other programs into thinking
>its running from a terminal when its not?

	ssh -t

>In short I need a method of either passing the password in a script
>to ssh, or pre-configuring ssh on both ends to accept the connection
>without asking for a password. man ssh alludes to this possibility,
>but I haven't been able to figure out which keys I need to locate
>and where or where to put or copy them.

Create yourself a passwordless keypair:

	ssh-keygen -t dsa

When it prompts for a password, simply press return. Append the generated
~/.ssh/id_dsa.pub to ~/.ssh/authorized_keys on the remote machine.

You should now be able to ssh without being prompted for a password.

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list