Re: ssh no password problem
- From: "Brian McKee" <brian.mckee@xxxxxxxxx>
- Date: Sun, 31 Aug 2008 08:09:57 -0400
On Sun, Aug 31, 2008 at 5:58 AM, Mario Vukelic
<mario.vukelic@xxxxxxxxxxx> wrote:
On Sun, 2008-08-31 at 11:47 +0200, Adel ESSAFI wrote:
What are other reasons that can causes that!
Wait a minute, rom the command listing in your original post it seems
that you might have generated and added the public key on the same
machine, is that correct?
Yes, but he's testing it on the local machine as well....
You need to generate id_dsa.pub on the local machine, then copy it to
the remote host and add it _there_ to ~/.ssh/authorized_keys2
If you follow the instructions on
https://help.ubuntu.com/8.04/serverguide/C/openssh-server.html to the
letter, it should be fine.
What has gotten me in the past is the permissions on the .ssh folder istself.
They should be 744 I believe.
There is a command to add keys to a remote server as well that's
rarely mentioned.
I don't have my Ubuntu box in front of me, but I'm pretty sure it's
ssh-copy-id or at least ssh-copy-something
where `ssh-copy-id -i path/to/public/key remoteuser@remotehost` will
copy the key to the right place with the right permissions.
Also, when testing ssh, if you use a couple of -v then troubleshooting
is much easier.
ssh -v
HTH
Brian
--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
- References:
- ssh no password problem
- From: Adel ESSAFI
- Re: ssh no password problem
- From: Mario Vukelic
- Re: ssh no password problem
- From: Adel ESSAFI
- Re: ssh no password problem
- From: Mario Vukelic
- ssh no password problem
- Prev by Date: Re: I am so lost with this program!!!!
- Next by Date: Re: locale and OpenOffice
- Previous by thread: Re: ssh no password problem
- Next by thread: Re: ssh no password problem
- Index(es):