This is the mail archive of the cygwin 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]

Re: Windows 7 sshd can only login as cyg_server

On Aug 22 13:23, Larry Hall (Cygwin) wrote:
> On 08/22/2014 09:06 AM, Corinna Vinschen wrote:
> >On Aug 21 15:16, Bernd Prager wrote:
> >>I just installed cygwin on Windows 7 and configured sshd with
> >>ssh-host-config.
> >>I checked all the permission and everything seems to be fine.
> >>
> >>I can connect as local user "cyg_server" but not as myself (a standard
> >>Windows 7 domain user).
> >>I am asked for a password and then I get:
> >>
> >>debug3: packet_send2: adding 48 (len 61 padlen 19 extra_pad 64)
> >>debug2: we sent a password packet, wait for reply
> >>debug1: Authentication succeeded (password).
> >>Authenticated to localhost ([]:22).
> >>debug1: channel 0: new [client-session]
> >>debug3: ssh_session2_open: channel_new: 0
> >>debug2: channel 0: send open
> >>debug1: Requesting
> >>debug1: Entering interactive session.
> >>debug2: callback start
> >>debug2: fd 3 setting TCP_NODELAY
> >>debug3: packet_set_tos: set IP_TOS 0x10
> >>debug2: client_session2_setup: id 0
> >>debug2: channel 0: request pty-req confirm 1
> >>debug2: channel 0: request shell confirm 1
> >>debug2: callback done
> >>debug2: channel 0: open confirm rwindow 0 rmax 32768
> >>debug1: channel 0: free: client-session, nchannels 1
> >>debug3: channel 0: status: The following connections are open:
> >>   #0 client-session (t4 r0 i0/0 o0/0 fd 4/5 cc -1)
> >>
> >>Connection to localhost closed by remote host.
> >>
> >>In the Windows I see the error event:
> >>
> >>sshd: PID 2968: fatal: chown(/dev/pty1, 124683, 10513) failed: Permission
> >>denied
> >>
> >>Can anybody help?
> >
> >I'll have to test this, but as a start, can you try to setup
> >cyg_server as a domain account?  See
> >
> I know this is a contradictory report but logging in (pubkey) with my domain
> user account and local cyg_server actually works fine.  I know. I'm
> surprised too. ;-)  This is W7 Enterprise and Cygwin 64-bit.

Is your domain account an admin or a non-admin account?  Today I
confused myself a lot by trying it (I'm using a domain cyg_server
account for years so it was a bit of hacking) and I was able to login
with a domain admin account but not with a normal domain account.  I
didn't manage to debug this further.  However, what I never encounter is
a "chown(/dev/ptyX,...) Permission denied" message.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpCJ9khQGnf9.pgp
Description: PGP signature

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