ssh without password

Stephen R Laniel steve at
Fri Oct 14 14:38:59 UTC 2005

On Sat, Oct 15, 2005 at 12:27:03AM +1000, David wrote:
> david at foo:~/.ssh $ scp david at testbar:/home/david/.ssh/authorized_keys

Well, to be safe you'd want to do

ssh testbar
[enter password]
cat ~/ >> ~/.ssh/authorized_keys

The command you included above would clobber any keys that
are already in ~/.ssh/authorized_keys.

(Note also that 'david at testbar:/home/david/.ssh' is rather
long; the short form is 'david at testbar:.ssh'. And since ssh
defaults to using the same username on your remote machine
as on your local one, you can shorten it further to

However, that probably doesn't explain your current problem.

> david at foo:~/.ssh $ ssh david at fast
> Password:
> DARN! Why does it ask for a password!

Try doing

ssh -v fast

and send us the results from that. The verbose logging in
ssh is quite handy.

Stephen R. Laniel
steve at
+(617) 308-5571
PGP key:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <>

More information about the ubuntu-users mailing list