Topic "Server sent command exit status 1"

Author Message


I continue to have a problem with connecting with WinSCP.

Server: Windows 2003 Server
Accounts: Domain Users
Remote System Environment: Cygwin
All accounts are domain accounts
. Started a shell/command
. Server sent command exit status 1
I can connect SSH to the remote server.

I have seen this mentioned on the forum, but the problem doesn't seem to be the same.

. Server version: SSH-1.99-OpenSSH_3.7.1p2
. We claim version: SSH-2.0-WinSCP-release-
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-rsa 1024 06:40:4d:db:84:d8:58:b7:12:02:53:ed:b6:8f:eb:f6
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
. Initialised zlib (RFC1950) compression
. Initialised zlib (RFC1950) decompression
! Using username "tcanter".
. Keyboard-interactive authentication refused
. Session password prompt (tcanter@'s password: )
. Using stored password.
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. Server sent command exit status 1
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
! setgid: Invalid argument
. All channels closed. Disconnecting
* (ESshFatal) Error skipping startup message. Your shell is probably incompatible with the application (BASH is recommended).
* Connection has been unexpectedly closed. Server sent command exit status 1.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24759
Location: Prague, Czechia
Look at topic "WinSCP fails to connect my OpenSSH_3.5p 1(on w2k server w/ sp3). It may help you.
[View user's profile]

Joined: 2003-11-12
Posts: 1
Location: Denver, CO
Thanks, I did look at that.
I have found an interim solution, but I don't understand why it works:
mkpasswd -d -o 0 > /etc/passwd
mkpasswd -l >> /etc/passwd
It appears that the OpenSSH is returning an error from a domain account UID that is a large number.

prikryl wrote:

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License