This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

1.3.5 openssh strictmodes


I am running cygwin 1.3.5 with openssh 3.0.1 on a Win2K box.

I have

echo $CYGWIN
ntea ntsec

I start sshd as Administrator.  In sshd_config, I have

StrictModes yes

All of the relevant files and directories are owned by Administrator and
have minimal permissions, ie:

Administrator@SCANNER$ ls -ld home etc
dr-x------    2 Administ None         4096 Nov 22 12:10 etc
dr-x------    3 Administ None            0 Nov 21 13:22 home

Administrator@SCANNER$ ls -l etc
total 91
-r--------    1 Administ None        88039 Nov  9 11:06 moduli
-r--------    1 Administ None          215 Nov 22 12:09 passwd
-r--------    1 Administ None          668 Nov  9 12:12 ssh_host_dsa_key
-r--------    1 Administ None          611 Nov  9 12:12 ssh_host_dsa_key.pub
-r--------    1 Administ None         1087 Nov 22 12:10 sshd_config

Administrator@SCANNER$ cd home/Administrator/
Administrator@SCANNER$ ls -la
total 8
dr-x------    3 Administ None         4096 Nov 22 13:04 .
dr-x------    3 Administ None            0 Nov 21 13:22 ..
dr-x------    2 Administ None         4096 Nov 22 12:01 .ssh

Administrator@SCANNER$ cd .ssh
Administrator@SCANNER$ ls -la
total 11
dr-x------    2 Administ None         4096 Nov 22 12:01 .
dr-x------    3 Administ None         4096 Nov 22 13:04 ..
-r--------    1 Administ None         2471 Nov 22 12:01 authorized_keys2

Starting sshd in debug mode and then trying to connect to the server, tells
me:

debug1: trying public key file /home/Administrator/.ssh/authorized_keys2
Authentication refused: bad ownership or modes for file
/cygdrive/c/cygwin/home/Administrator/.ssh/authorized_keys2

How can this be the case?

Peter Sundstrom

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]