[SLL] Anybody know why my Ubuntu sshd server isn't taking my DSA public key?

Bill Campbell bill at celestial.com
Tue May 20 13:39:04 PDT 2008


On Tue, May 20, 2008, Xeno Campanoli wrote:
>I'm able to log in to my CentOS server using a DSA public key and no 
>password.  It has version:
>
>OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
>
>but my Ubuntu server, which is Hardy, and has:
>
>OpenSSH_4.7p1 Debian-8ubuntu1.1, OpenSSL 0.9.8g 19 Oct 2007
>
>isn't taking the thing.  In both cases I insert the key to the 
>.ssh/authorized_keys file using vim, and for the Ubuntu/Hardy I get 
>prompted for a password.  Go figure that.  ???

Use ``ssh -v'' to see if anything jumps out.

Often the problem is mode and ownership of the ~/.ssh directory and/or
files.  The ~/.ssh directory should have 700 mode, owned by the
appropriate user.  These two commands should make things work if
this is the problem

chmod 700 ~/.ssh
chown -R $USER: ~/.ssh

Bill
-- 
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
Voice:          (206) 236-1676  Mercer Island, WA 98040-0820
Fax:            (206) 232-9186

You know the one thing that's wrong with this country? Everyone gets a
chance to have their fair say.  -- Bill Clinton, May 29, 1993, The White House


More information about the linux-list mailing list