Son of son of SSH & Cygwin; scp and sftp

Stephen C. Biggs yyyyy50@hotpop.com
Mon Aug 5 13:14:00 GMT 2002


On 5 Aug 2002 at 14:18, Harig, Mark A. wrote:
> 
> 
> > -----Original Message-----
> > From: Stephen C. Biggs [mailto:yyyyy50@hotpop.com]
> > Sent: Saturday, August 03, 2002 10:37 PM
> > To: cygwin@cygwin.com
> > Subject: Son of son of SSH & Cygwin; scp and sftp
> > 
> > 
> > I'm having some pretty weird problems here...
> > 
> > I was just able to access my ssh shell with my 
> > alternate user if I use a blank password and 
> > both PermitEmptyPasswords and 
> > PasswordAuthentication == yes.
> > 
> 
> My guess is that you don't want this.  It's likely that
> ssh is still failing the encrypted key handshaking, but
> is simply accepting the empty password.  Run 'ssh -v <server IP>'
> to verify this.  
> 
> 

No, you don't understand. You are correct that I 
do not want this, I want to authenticate using 
public keys.  It IS accepting the encrypted key 
handshaking (with both PermitEmptyPasswords 
and PasswordAuthentication == no).  THEN the 
server dumps the connection.

To answer your earlier questions:

> 1. What are the permissions of the ~/.ssh directory
>    for the "different user"?

The user name is "test".

$ ls /home/test/.ssh -al
total 14
drwxr-xr-x    2 test     guests       4096 Aug  5 
12:47 .
drwxr-xr-x    4 test     guests       4096 Aug  5 
04:22 ..
-rw-r--r--    1 test     guests        604 Aug  5 
12:47 authorized_keys
-rw-r--r--    1 test     guests        604 Aug  2 
21:05 authorized_keys2
-rw-------    1 test     guests        736 Aug  2 
20:57 id_dsa
-rw-r--r--    1 test     guests        604 Aug  2 
21:04 id_dsa.pub
-rwxrwxrwx    1 test     guests       1471 Aug  5 
04:51 known_hosts

Note: this session is NOT chrooted!  As per my 
earlier messages, I don't believe that chroot is 
the problem since this also fails without chroot.

$ ssh -vvv -l test localhost -i 
/home/test/.ssh/id_dsa
OpenSSH_3.4p1, SSH protocols 1.5/2.0, 
OpenSSL 0x0090605f
debug1: Reading configuration data 
/etc/ssh_config
debug1: Rhosts Authentication disabled, 
originating port will not be trusted.
debug1: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] 
port 22.
debug1: Connection established.
debug3: Not a RSA1 key file 
/home/test/.ssh/id_dsa.
debug2: key_type_from_name: unknown key 
type '-----BEGIN'
debug3: key_read: no key found
debug2: key_type_from_name: unknown key 
type 'Proc-Type:'
debug3: key_read: no key found
debug2: key_type_from_name: unknown key 
type 'DEK-Info:'
debug3: key_read: no key found
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug3: key_read: no space
debug2: key_type_from_name: unknown key 
type '-----END'
debug3: key_read: no key found
debug1: identity file /home/test/.ssh/id_dsa type 
2
debug1: Remote protocol version 1.99, remote 
software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat 
OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-
OpenSSH_3.4p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-
group-exchange-sha1,diffie-hellman-group1-
sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-
group-exchange-sha1,diffie-hellman-group1-
sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-
md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-
md5 none
debug1: 
SSH2_MSG_KEX_DH_GEX_REQUEST sent
debug1: expecting 
SSH2_MSG_KEX_DH_GEX_GROUP
debug1: dh_gen_key: priv key bits set: 129/256
debug1: bits set: 1589/3191
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting 
SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename 
/home/Steve/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 3
debug1: Host 'localhost' is known and matches 
the RSA host key.
debug1: Found key in 
/home/Steve/.ssh/known_hosts:3
debug1: bits set: 1599/3191
debug1: ssh_rsa_verify: signature correct
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: done: ssh_kex2.
debug1: send 
SSH2_MSG_SERVICE_REQUEST
debug1: service_accept: ssh-userauth
debug1: got SSH2_MSG_SERVICE_ACCEPT
debug1: authentications that can continue: 
publickey,keyboard-interactive
debug3: start over, passed a different list 
publickey,keyboard-interactive
debug3: preferred publickey,keyboard-
interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-
interactive,password
debug3: authmethod_is_enabled publickey
debug1: next auth method to try is publickey
debug1: try pubkey: /home/test/.ssh/id_dsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for 
reply
debug1: input_userauth_pk_ok: pkalg ssh-dss 
blen 433 lastkey 0x100c4580 hint 0
debug2: input_userauth_pk_ok: fp 
42:7a:92:36:93:71:0c:48:41:7d:e8:0c:e8:fa:11:
39
debug3: sign_and_send_pubkey
debug1: PEM_read_PrivateKey failed
debug1: read PEM private key done: type 
<unknown>
Enter passphrase for key 
'/home/test/.ssh/id_dsa':
debug1: read PEM private key done: type DSA
debug1: ssh-userauth2 successful: method 
publickey
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug1: send channel open 0
debug1: Entering interactive session.
debug2: callback start
debug1: ssh_session2_setup: id 0
debug1: channel request 0: pty-req
debug3: tty_make_modes: ospeed 38400
debug3: tty_make_modes: ispeed 38400
debug3: tty_make_modes: 1 3
debug3: tty_make_modes: 2 28
debug3: tty_make_modes: 3 8
debug3: tty_make_modes: 4 21
debug3: tty_make_modes: 5 4
debug3: tty_make_modes: 6 0
debug3: tty_make_modes: 7 0
debug3: tty_make_modes: 8 17
debug3: tty_make_modes: 9 19
debug3: tty_make_modes: 10 26
debug3: tty_make_modes: 12 18
debug3: tty_make_modes: 13 23
debug3: tty_make_modes: 14 22
debug3: tty_make_modes: 18 15
debug3: tty_make_modes: 30 0
debug3: tty_make_modes: 31 0
debug3: tty_make_modes: 32 0
debug3: tty_make_modes: 33 0
debug3: tty_make_modes: 34 0
debug3: tty_make_modes: 35 0
debug3: tty_make_modes: 36 1
debug3: tty_make_modes: 37 0
debug3: tty_make_modes: 38 1
debug3: tty_make_modes: 39 0
debug3: tty_make_modes: 40 0
debug3: tty_make_modes: 41 0
debug3: tty_make_modes: 50 1
debug3: tty_make_modes: 51 1
debug3: tty_make_modes: 53 1
debug3: tty_make_modes: 54 0
debug3: tty_make_modes: 55 0
debug3: tty_make_modes: 56 0
debug3: tty_make_modes: 57 0
debug3: tty_make_modes: 58 0
debug3: tty_make_modes: 59 1
debug3: tty_make_modes: 60 0
debug3: tty_make_modes: 61 0
debug3: tty_make_modes: 70 1
debug3: tty_make_modes: 71 0
debug3: tty_make_modes: 72 1
debug3: tty_make_modes: 73 0
debug3: tty_make_modes: 74 0
debug3: tty_make_modes: 75 0
debug3: tty_make_modes: 90 1
debug3: tty_make_modes: 91 1
debug3: tty_make_modes: 92 0
debug3: tty_make_modes: 93 0
debug1: channel request 0: shell
debug1: fd 3 setting TCP_NODELAY
debug2: callback done
debug1: channel 0: open confirm rwindow 0 
rmax 32768
debug2: channel 0: rcvd adjust 131072
debug1: channel_free: channel 0: client-
session, nchannels 1
debug3: channel_free: status: The following 
connections are open:
  #0 client-session (t4 r0 i0/0 o0/0 fd 4/5)

debug3: channel_close_fds: channel 0: r 4 w 5 
e 6
Connection to localhost closed by remote host.
Connection to localhost closed.
debug1: Transferred: stdin 0, stdout 0, stderr 81 
bytes in 3.1 seconds
debug1: Bytes per second: stdin 0.0, stdout 
0.0, stderr 25.9
debug1: Exit status -1
$ 

Here is the debug output from SSHD:
$ cygrunsrv -e "CYGWIN=glob ntsec binmode" 
-d "Cygwin SSHD" -p /usr/sbin/sshd.exe -1 
/var/log/sshd.log -2 /var/log/sshd.log -a "-e -D -
ddd"
$ cygrunsrv -S sshd
debug1: sshd version OpenSSH_3.4p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file 
/etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file 
/etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Server listening on 0.0.0.0 port 22.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in 
debugging mode.
......
Connection from 127.0.0.1 port 3740
debug1: Client protocol version 2.0; client 
software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat 
OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-
OpenSSH_3.4p1
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug2: Network child is on pid 330
debug3: preauth child monitor started
debug3: mm_request_receive entering
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-
group-exchange-sha1,diffie-hellman-group1-
sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-
group-exchange-sha1,diffie-hellman-group1-
sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu
debug2: kex_parse_kexinit: aes128-cbc,3des-
cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-
cbc,aes256-cbc,rijndael-cbc@lysator.liu
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-
sha1,hmac-ripemd160,hmac-
ripemd160@openssh.com,hmac-sha1-
96,hmac-md5-96
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit: none
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-
md5 none
debug2: mac_init: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-
md5 none
debug1: 
SSH2_MSG_KEX_DH_GEX_REQUEST 
received
debug3: mm_request_send entering: type 0
debug3: mm_choose_dh: waiting for 
MONITOR_ANS_MODULI
debug3: mm_request_receive_expect entering: 
type 1
debug3: mm_request_receive entering
debug3: monitor_read: checking request 0
debug3: mm_answer_moduli: got parameters: 
1024 2048 8192
debug3: mm_request_send entering: type 1
debug2: monitor_read: 0 used once, disabling 
now
debug3: mm_request_receive entering
debug3: mm_choose_dh: remaining 0
debug1: SSH2_MSG_KEX_DH_GEX_GROUP 
sent
debug1: dh_gen_key: priv key bits set: 140/256
debug1: bits set: 1599/3191
debug1: expecting 
SSH2_MSG_KEX_DH_GEX_INIT
debug1: bits set: 1589/3191
debug3: mm_key_sign entering
debug3: mm_request_send entering: type 4
debug3: mm_key_sign: waiting for 
MONITOR_ANS_SIGN
debug3: mm_request_receive_expect entering: 
type 5
debug3: mm_request_receive entering
debug3: monitor_read: checking request 4
debug3: mm_answer_sign
debug3: mm_answer_sign: signature 
0x100c2a68(143)
debug3: mm_request_send entering: type 5
debug2: monitor_read: 4 used once, disabling 
now
debug3: mm_request_receive entering
debug1: SSH2_MSG_KEX_DH_GEX_REPLY 
sent
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user test service 
ssh-connection method none
debug1: attempt 0 failures 0
debug3: mm_getpwnamallow entering
debug3: mm_request_send entering: type 6
debug3: mm_getpwnamallow: waiting for 
MONITOR_ANS_PWNAM
debug3: mm_request_receive_expect entering: 
type 7
debug3: mm_request_receive entering
debug3: monitor_read: checking request 6
debug3: mm_answer_pwnamallow
debug3: mm_answer_pwnamallow: sending 
MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 7
debug2: monitor_read: 6 used once, disabling 
now
debug3: mm_request_receive entering
debug2: input_userauth_request: setting up 
authctxt for test
debug3: mm_inform_authserv entering
debug3: mm_request_send entering: type 3
debug2: input_userauth_request: try method 
none
debug3: mm_auth_password entering
debug3: mm_request_send entering: type 10
debug3: mm_auth_password: waiting for 
MONITOR_ANS_AUTHPASSWORD
debug3: mm_request_receive_expect entering: 
type 11
debug3: mm_request_receive entering
debug3: monitor_read: checking request 3
debug3: mm_answer_authserv: service=ssh-
connection, style=
debug2: monitor_read: 3 used once, disabling 
now
debug3: mm_request_receive entering
debug3: monitor_read: checking request 10
debug3: mm_answer_authpassword: sending 
result 0
debug3: mm_request_send entering: type 11
Failed none for test from 127.0.0.1 port 3740 
ssh2
debug3: mm_request_receive entering
debug3: mm_auth_password: user not 
authenticated
Failed none for test from 127.0.0.1 port 3740 
ssh2
debug1: userauth-request for user test service 
ssh-connection method publickey
debug1: attempt 1 failures 1
debug2: input_userauth_request: try method 
publickey
debug1: test whether pkalg/pkblob are 
acceptable
debug3: mm_key_allowed entering
debug3: mm_request_send entering: type 20
debug3: mm_key_allowed: waiting for 
MONITOR_ANS_KEYALLOWED
debug3: mm_request_receive_expect entering: 
type 21
debug3: mm_request_receive entering
debug3: monitor_read: checking request 20
debug3: mm_answer_keyallowed entering
debug3: mm_answer_keyallowed: 
key_from_blob: 0x100c2ac0
debug1: temporarily_use_uid: 1006/546 (e=18)
debug1: trying public key file 
/home/test/.ssh/authorized_keys
debug3: secure_filename: checking 
'/home/test/.ssh'
debug3: secure_filename: checking '/home/test'
debug3: secure_filename: terminating check at 
'/home/test'
debug1: matching key found: file 
/home/test/.ssh/authorized_keys, line 1
Found matching DSA key: 
42:7a:92:36:93:71:0c:48:41:7d:e8:0c:e8:fa:11:
39
debug1: restore_uid
debug3: mm_answer_keyallowed: key 
0x100c2ac0 is allowed
debug3: mm_request_send entering: type 21
debug3: mm_request_receive entering
debug2: userauth_pubkey: authenticated 0 
pkalg ssh-dss
Postponed publickey for test from 127.0.0.1 
port 3740 ssh2
debug1: userauth-request for user test service 
ssh-connection method publickey
debug1: attempt 2 failures 1
debug2: input_userauth_request: try method 
publickey
debug3: mm_key_allowed entering
debug3: mm_request_send entering: type 20
debug3: mm_key_allowed: waiting for 
MONITOR_ANS_KEYALLOWED
debug3: mm_request_receive_expect entering: 
type 21
debug3: mm_request_receive entering
debug3: monitor_read: checking request 20
debug3: mm_answer_keyallowed entering
debug3: mm_answer_keyallowed: 
key_from_blob: 0x100c2ae0
debug1: temporarily_use_uid: 1006/546 (e=18)
debug1: trying public key file 
/home/test/.ssh/authorized_keys
debug3: secure_filename: checking 
'/home/test/.ssh'
debug3: secure_filename: checking '/home/test'
debug3: secure_filename: terminating check at 
'/home/test'
debug1: matching key found: file 
/home/test/.ssh/authorized_keys, line 1
Found matching DSA key: 
42:7a:92:36:93:71:0c:48:41:7d:e8:0c:e8:fa:11:
39
debug1: restore_uid
debug3: mm_answer_keyallowed: key 
0x100c2ae0 is allowed
debug3: mm_request_send entering: type 21
debug3: mm_request_receive entering
debug3: mm_key_verify entering
debug3: mm_request_send entering: type 22
debug3: mm_key_verify: waiting for 
MONITOR_ANS_KEYVERIFY
debug3: mm_request_receive_expect entering: 
type 23
debug3: mm_request_receive entering
debug3: monitor_read: checking request 22
debug1: ssh_dss_verify: signature correct
debug3: mm_answer_keyverify: key 
0x100c2ad0 signature verified
debug3: mm_request_send entering: type 23
Accepted publickey for test from 127.0.0.1 port 
3740 ssh2
debug1: monitor_child_preauth: test has been 
authenticated by privileged process
debug3: mm_get_keystate: Waiting for new 
keys
debug3: mm_request_receive_expect entering: 
type 24
debug3: mm_request_receive entering
debug2: userauth_pubkey: authenticated 1 
pkalg ssh-dss
Accepted publickey for test from 127.0.0.1 port 
3740 ssh2
debug3: mm_send_keystate: Sending new 
keys: 0x100c2820 0x100c26e8
debug3: mm_newkeys_to_blob: converting 
0x100c2820
debug3: mm_newkeys_to_blob: converting 
0x100c26e8
debug3: mm_send_keystate: New keys have 
been sent
debug3: mm_send_keystate: Sending 
compression state
debug3: mm_request_send entering: type 24
debug3: mm_send_keystate: Finished sending 
state
debug3: mm_newkeys_from_blob: 
0x100c2f38(118)
debug2: mac_init: found hmac-md5
debug3: mm_get_keystate: Waiting for second 
key
debug3: mm_newkeys_from_blob: 
0x100c2868(118)
debug2: mac_init: found hmac-md5
debug3: mm_get_keystate: Getting compression 
state
debug3: mm_get_keystate: Getting Network I/O 
buffers
debug3: mm_share_sync: Share sync
debug3: mm_share_sync: Share sync end
debug1: newkeys: mode 0
debug1: newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug1: fd 3 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: server_init_dispatch_20
debug1: server_input_channel_open: ctype 
session rchan 0 win 65536 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug1: session_new: init
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with 
channel 0
debug1: server_input_channel_open: confirm 
session
debug1: server_input_channel_req: channel 0 
request pty-req reply 0
debug1: session_by_channel: session 0 
channel 0
debug1: session_input_channel_req: session 0 
req pty-req
debug1: Allocating pty.
debug1: session_pty_req: session 0 alloc 
/dev/tty2
debug3: tty_parse_modes: SSH2 n_bytes 246
debug3: tty_parse_modes: ospeed 38400
debug3: tty_parse_modes: ispeed 38400
debug3: tty_parse_modes: 1 3
debug3: tty_parse_modes: 2 28
debug3: tty_parse_modes: 3 8
debug3: tty_parse_modes: 4 21
debug3: tty_parse_modes: 5 4
debug3: tty_parse_modes: 6 0
debug3: tty_parse_modes: 7 0
debug3: tty_parse_modes: 8 17
debug3: tty_parse_modes: 9 19
debug3: tty_parse_modes: 10 26
debug3: tty_parse_modes: 12 18
debug3: tty_parse_modes: 13 23
debug3: tty_parse_modes: 14 22
debug3: tty_parse_modes: 18 15
debug3: tty_parse_modes: 30 0
debug3: tty_parse_modes: 31 0
debug3: tty_parse_modes: 32 0
debug3: tty_parse_modes: 33 0
debug3: tty_parse_modes: 34 0
debug3: tty_parse_modes: 35 0
debug3: tty_parse_modes: 36 1
debug3: tty_parse_modes: 37 0
debug3: tty_parse_modes: 38 1
debug3: tty_parse_modes: 39 0
debug3: tty_parse_modes: 40 0
debug3: tty_parse_modes: 41 0
debug3: tty_parse_modes: 50 1
debug3: tty_parse_modes: 51 1
debug3: tty_parse_modes: 53 1
debug3: tty_parse_modes: 54 0
debug3: tty_parse_modes: 55 0
debug3: tty_parse_modes: 56 0
debug3: tty_parse_modes: 57 0
debug3: tty_parse_modes: 58 0
debug3: tty_parse_modes: 59 1
debug3: tty_parse_modes: 60 0
debug3: tty_parse_modes: 61 0
debug3: tty_parse_modes: 70 1
debug3: tty_parse_modes: 71 0
debug3: tty_parse_modes: 72 1
debug3: tty_parse_modes: 73 0
debug3: tty_parse_modes: 74 0
debug3: tty_parse_modes: 75 0
debug3: tty_parse_modes: 90 1
debug3: tty_parse_modes: 91 1
debug3: tty_parse_modes: 92 0
debug3: tty_parse_modes: 93 0
debug1: server_input_channel_req: channel 0 
request shell reply 0
debug1: session_by_channel: session 0 
channel 0
debug1: session_input_channel_req: session 0 
req shell
debug1: fd 4 setting TCP_NODELAY
debug1: channel 0: rfd 9 isatty
debug1: fd 9 setting O_NONBLOCK
debug1: fd 8 setting O_NONBLOCK
Write failed: Cannot send after transport 
endpoint shutdown
debug1: Calling cleanup 0x415dc4(0x44aaf0)
debug1: session_pty_cleanup: session 0 
release /dev/tty2
syslogin_perform_logout: logout() returned an 
error
debug1: Calling cleanup 0x427360(0x0)
debug1: channel_free: channel 0: server-
session, nchannels 1
debug3: channel_free: status: The following 
connections are open:
  #0 server-session (t4 r0 i0/263 o0/0 fd 9/8)

debug3: channel_close_fds: channel 0: r 9 w 8 
e -1
debug1: Calling cleanup 0x41c9c0(0x0)


> 
> 2. How did you create the /etc/passwd entry for this
>    second user?

test::1006:546:U-LOCALHOST\test,S-1-5-21-
1743480672-7889942-740312968-
1006:/home/test:/bin/bash

> 
>   3. What filesystem are you running on the drive, NTFS or FAT32?
NTFS.

> 
>   4. What are the values of the environment variable CYGWIN that
>      you pass to cygrunsrv?

See above for my cygrunsrv command.

> 


--
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/



More information about the Cygwin mailing list