Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.security.ssh > #130

Re: getting public key authentication working on openssh

From Richard E. Silverman <res@qoxp.net>
Newsgroups comp.security.ssh
Subject Re: getting public key authentication working on openssh
Message-ID <m2sjqiyb64.fsf@darwin.oankali.net> (permalink)
Organization Thundernews
Date 2011-07-07 00:20 -0400

Show all headers | View raw


Aaron <resera@gmail.com> writes:

> I have openssh running on windows (SSHWindows.SourceForge.Net) 
and a remote Linux (Ubuntu) server.  
>
> I'm trying to use passwordless ssh to ssh into my Ubuntu box 
from windows.
>
> In preparation I created the public key on Ubuntu ("ssh-keygen 
-t dsa") and copied id_dsa.pub from Ubuntu into C:\Documents and 
Settings\jsmith\.ssh
>
> Then, on windows I type "ssh -vvv root@ninja"
>
> As you can see from the debug output below, publickey 
authentication is skipped and I'm prompted for a password.
>
> What am I doing wrong?

There are many things that could be wrong.  One common issue is 
permissions: by default, sshd has requirements for the permissions 
on the authorized_keys file, as well as its containing directory 
~/.ssh, and the home directory. Specifically, none of these may be 
writable by any uid except the owner or root. That means the most 
permissive modes you can have here are:

$ chmod 755 ~
$ chmod 755 ~/.ssh
$ chmod 644 ~/.ssh/authorized_keys

Usually the fastest way to see what's wrong is to run the server 
in debug mode on an alternate port (e.g. sshd -dp221), connect to 
it, and see what it says.

- Richard

Back to comp.security.ssh | Previous | Next | Find similar


Thread

Re: getting public key authentication working on openssh Richard E. Silverman <res@qoxp.net> - 2011-07-07 00:20 -0400

csiph-web