Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

tcanter

Re: Server sent command exit status 1

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.

Thanks,
Tom

martin wrote:

TomC

Server sent command exit status 1

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-3.4.2.197
. 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@66.180.127.142'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.