ssh without password
Stephen R Laniel
steve at laniels.org
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 id_dsa.pub david at testbar:/home/david/.ssh/authorized_keys
Well, to be safe you'd want to do
scp id_dsa.pub testbar:id_dsa.foo
ssh testbar
[enter password]
cat ~/id_dsa.foo >> ~/.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
'testbar:.ssh'.)
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 laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20051014/48796e05/attachment.sig>
More information about the ubuntu-users
mailing list