Server sent command exit status 128
My issue seems related to the credentials provided by the client. Members of the
- MS Windows 2k3 SP1 (NON DC)
- Cygwin as SSH/SFTP server
- root dir Administrators, full access
- root dir Users, Create Files/Folders, Write Attributes + Ext.
- Creator Group, full access
Also, client user has no issues when using Cygwin to SSH/SFTP to server
The following is the logs, debugging level 2
The following are snips of the logs where the failer durring (1) takes place.
(1) = member of
(2) = member of
(3) = member of
(1)
(2)
(3)
Administrators
group have no problem logging into the server via SFTP or SCP. However, members of the Users
group can only log into the server via SCP mode. If a member of the Users
group logs into the server via SFTP, even with the SCP fall back option, upon "starting session" WinSCP errors out to: NOTE (the above mentioned groups pertain to server side)
I am sure this is indeed a server side rights issue, but I have been unable to find any information regarding "server side" credentials requirements. The server side environment is:Connection has been unexpectedly closed. Server sent command exit status 128.
- MS Windows 2k3 SP1 (NON DC)
- Cygwin as SSH/SFTP server
- root dir Administrators, full access
- root dir Users, Create Files/Folders, Write Attributes + Ext.
- Creator Group, full access
Also, client user has no issues when using Cygwin to SSH/SFTP to server
The following is the logs, debugging level 2
The following are snips of the logs where the failer durring (1) takes place.
(1) = member of
Users
group attempting connection via SFTP w/SCP fallback (FAILS)
(2) = member of
Users
group attempting connection via SCP (WORKS)
(3) = member of
Administrators
attempting connection via SFTP (WORKS)
(1)
. 2006-07-31 08:35:13.661 Opened channel for session . 2006-07-31 08:35:13.661 Waiting for the server to continue with the initialisation . 2006-07-31 08:35:13.677 Looking for incoming data . 2006-07-31 08:35:13.739 Select result is 1 . 2006-07-31 08:35:13.739 Started a shell/command . 2006-07-31 08:35:13.755 -------------------------------------------------------------------------- . 2006-07-31 08:35:13.771 Using SFTP protocol. . 2006-07-31 08:35:13.786 Doing startup conversation with host. > 2006-07-31 08:35:13.802 Type: SSH_FXP_INIT, Size: 5, Number: -1 > 2006-07-31 08:35:13.833 01,00,00,00,05, . 2006-07-31 08:35:13.849 Sent 9 bytes . 2006-07-31 08:35:13.864 There are 0 bytes remaining in the send buffer . 2006-07-31 08:35:13.880 Waiting for another 4 bytes . 2006-07-31 08:35:13.896 Looking for incoming data . 2006-07-31 08:35:13.943 Select result is 1 . 2006-07-31 08:35:13.958 Server sent command exit status 128 . 2006-07-31 08:35:13.974 Waiting for another 4 bytes . 2006-07-31 08:35:13.989 Looking for incoming data . 2006-07-31 08:35:14.193 Select result is 1 . 2006-07-31 08:35:14.208 All channels closed. Disconnecting . 2006-07-31 08:35:14.224 Server closed network connection . 2006-07-31 08:35:14.239 Waiting for another 4 bytes . 2006-07-31 08:35:14.239 Looking for incoming data * 2006-07-31 08:35:14.271 (ESshFatal) Cannot initialize SFTP protocol. Is the host running a SFTP server? * 2006-07-31 08:35:14.271 Connection has been unexpectedly closed. Server sent command exit status 128....
. 2006-07-31 08:58:20.826 Opened channel for session . 2006-07-31 08:58:20.842 Waiting for the server to continue with the initialisation . 2006-07-31 08:58:20.857 Looking for incoming data . 2006-07-31 08:58:20.904 Select result is 1 . 2006-07-31 08:58:20.920 Started a shell/command . 2006-07-31 08:58:20.935 -------------------------------------------------------------------------- . 2006-07-31 08:58:20.982 Using SCP protocol. . 2006-07-31 08:58:20.982 Doing startup conversation with host. . 2006-07-31 08:58:20.998 Skipping host startup message (if any). . 2006-07-31 08:58:21.014 Sent 36 bytes . 2006-07-31 08:58:21.029 There are 0 bytes remaining in the send buffer . 2006-07-31 08:58:21.045 Sent 1 bytes . 2006-07-31 08:58:21.060 There are 0 bytes remaining in the send buffer > 2006-07-31 08:58:21.076 echo "WinSCP: this is end-of-file:0" . 2006-07-31 08:58:21.076 Waiting for another 1 bytes . 2006-07-31 08:58:21.092 Looking for incoming data . 2006-07-31 08:58:21.201 Select result is 1 . 2006-07-31 08:58:21.217 Received 1 bytes . 2006-07-31 08:58:21.232 Received 29 bytes < 2006-07-31 08:58:21.248 WinSCP: this is end-of-file:0 . 2006-07-31 08:58:21.264 Detecting variable containing return code of last command. ...
. 2006-07-31 08:54:41.502 Opened channel for session . 2006-07-31 08:54:41.518 Waiting for the server to continue with the initialisation . 2006-07-31 08:54:41.534 Looking for incoming data . 2006-07-31 08:54:41.659 Select result is 1 . 2006-07-31 08:54:41.674 Started a shell/command . 2006-07-31 08:54:41.690 -------------------------------------------------------------------------- . 2006-07-31 08:54:41.690 Using SFTP protocol. . 2006-07-31 08:54:41.706 Doing startup conversation with host. > 2006-07-31 08:54:41.721 Type: SSH_FXP_INIT, Size: 5, Number: -1 > 2006-07-31 08:54:41.737 01,00,00,00,05, . 2006-07-31 08:54:41.752 Sent 9 bytes . 2006-07-31 08:54:41.768 There are 0 bytes remaining in the send buffer . 2006-07-31 08:54:41.784 Waiting for another 4 bytes . 2006-07-31 08:54:41.799 Looking for incoming data . 2006-07-31 08:54:41.893 Select result is 1 . 2006-07-31 08:54:41.909 Received 4 bytes . 2006-07-31 08:54:41.924 Received 5 bytes < 2006-07-31 08:54:41.940 Type: SSH_FXP_VERSION, Size: 5, Number: -1 < 2006-07-31 08:54:41.956 02,00,00,00,03, . 2006-07-31 08:54:41.956 SFTP version 3 negotiated. . 2006-07-31 08:54:41.971 We believe the server has signed timestamps bug . 2006-07-31 08:54:41.987 We will use UTF-8 strings for status messages only . 2006-07-31 08:54:42.002 Limiting packet size to OpenSSH limit of 262148 bytes . 2006-07-31 08:54:42.018 Getting current directory name. . 2006-07-31 08:54:42.034 Getting real path for '.' ...