delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/10/05/02:00:27

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4162386A.1080009@pastornet.net.au>
Date: Tue, 05 Oct 2004 16:00:10 +1000
From: David Campbell <david AT pastornet DOT net DOT au>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a3) Gecko/20040817
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Cygwin & openssh(d) & login without password

Hi,

I'm having terrible trouble trying to be able to login without a 
password to a cygwin sshd, even from another user on the same machine.  
The sshd is working fine for password logins.

I've read lots of web pages about how to set it up, and I believe I've 
followed them, eg http://bumblebee.lcs.mit.edu/ssh2/ (for openssh to 
openssh):

Consider the following case where I have two users on the same computer, 
joe (who runs the ssh client), and mary (joe logs into the mary account):

The ssh client user's identity has to be in the other user's 
authorized_keys2 file. In this example, the two files are identical.

The permissions of the files have to be right:

    [mary AT mycomputer]~/.ssh> ls -al
    total 1
    drwx------+   2 mary      None            0 Oct  5 15:05 .
    drwx------+   3 mary      None            0 Oct  5 13:30 ..
    -rw-------    1 mary      None          607 Oct  5 15:05 
authorized_keys2

    [joe AT mycomputer]~/.ssh> ls -al
    total 12
    drwx------+   2 joe    None            0 Oct  5 15:36 .
    drwx------+  39 joe    None            0 Oct  5 15:36 ..
    -rw-------+   1 joe    None          668 Oct  5 14:08 id_dsa
    -rw-------+   1 joe    None          607 Oct  5 14:08 id_dsa.pub
    -rw-------+   1 joe    None         9695 Oct  5 14:57 known_hosts

And yet it is still asking me for the password:

    [joe AT mycomputer]~/.ssh> ssh mary AT mycomputer
    mary AT mycomputer's password:

The only other things I can think of are the contents of ssh_config and 
sshd_config.

sshd_config includes:
    DSAAuthentication yes
    RSAAuthentication yes
    PubkeyAuthentication yes
    AuthorizedKeysFile      .ssh/authorized_keys2

Am I doing anything wrong?
Is there anything else I should be checking?

-- 
Regards,
-- Dave Campbell


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019