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

martin

Re: Server sent command exit status 255

ggg wrote:

Nothing is written. How to do if there's an error??

Sorry, your post does not include enough information.

Please read how to ask for support or report bugs efficiently, so others can help you.
ggg

Re: Server sent command exit status 255

Nothing is written. How to do if there's an error??
dashah76

Re: Server sent command exit status 255

The evenid gives this error as below
Event Type:   Error

Event Source:   sshd
Event Category:   None
Event ID:   0
Date:      10/11/2011
Time:      12:21:20 AM
User:      NT AUTHORITY\SYSTEM
Computer:   TEST-SFTP
Description:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: sshd : PID 264 : fatal: setreuid 1003: Permission denied.
dashah76

Re: Server sent command exit status 255

2011-10-11 00:21:20.299 Doing Diffie-Hellman key exchange with hash SHA-1
. 2011-10-11 00:21:20.424 Host key fingerprint is:
. 2011-10-11 00:21:20.424 ssh-rsa 1024 64:c0:9a:53:2b:3e:77:86:d5:7e:4c:31:fd:3d:64:23
. 2011-10-11 00:21:20.424 Initialised AES-256 SDCTR client->server encryption
. 2011-10-11 00:21:20.424 Initialised HMAC-SHA1 client->server MAC algorithm
. 2011-10-11 00:21:20.424 Initialised AES-256 SDCTR server->client encryption
. 2011-10-11 00:21:20.424 Initialised HMAC-SHA1 server->client MAC algorithm
. 2011-10-11 00:21:20.439 Reading private key file "C:\Documents and Settings\Administrator\Desktop\ss3.ppk"
! 2011-10-11 00:21:20.439 Using username "test1".
. 2011-10-11 00:21:20.470 Offered public key
. 2011-10-11 00:21:20.486 Offer of public key accepted
! 2011-10-11 00:21:20.486 Authenticating with public key "rsa-key-20111011"
. 2011-10-11 00:21:20.533 Access granted
. 2011-10-11 00:21:20.549 Opened channel for session
. 2011-10-11 00:21:20.564 Started a shell/command
. 2011-10-11 00:21:20.564 --------------------------------------------------------------------------
. 2011-10-11 00:21:20.564 Using SFTP protocol.
. 2011-10-11 00:21:20.564 Doing startup conversation with host.
> 2011-10-11 00:21:20.564 Type: SSH_FXP_INIT, Size: 5, Number: -1
. 2011-10-11 00:21:20.595 Server sent command exit status 255
. 2011-10-11 00:21:20.611 Disconnected: All channels closed
* 2011-10-11 00:21:20.611 (ESshFatal) Connection has been unexpectedly closed. Server sent command exit status 255.
* 2011-10-11 00:21:20.611 Cannot initialize SFTP protocol. Is the host running a SFTP server?
The
martin

Re: Server sent command exit status 255

Have you checked server's logs?
dashah76

Re: Server sent command exit status 255

Changed the shell in WinSCP to /bin/bash and SFTP server to /bin/sftp-server from WinSCP tab. Still getting the same error. This error occurs in Windows 2003. I can successfully login with public key authentication from an OpenSSH server installed on Windows 2000/XP.
dashah76

Server sent command exit status 255

Hi
when I install OpenSSH 3.8 on Windows XP it works with the public key authentication without any error, but when I install on Windows 2003 it gives an error below in the log

Authenticating with public key "rsa-key-20110930"
Waiting for the server to continue with the initialisation
Detected network event
Access granted
Waiting for the server to continue with the initialisation
Detected network event
Opened channel for session
Waiting for the server to continue with the initialisation
Detected network event
Started a shell/command
Server sent command exit status 255