Topic "Server sent command exit status 255"

Author Message
dashah76
[View user's profile]

Joined: 2008-12-11
Posts: 9
Location: india
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please read documentation:
https://winscp.net/eng/docs/message_exit_status_1
_________________
Martin Prikryl
dashah76
[View user's profile]

Joined: 2008-12-11
Posts: 9
Location: india
prikryl wrote:

changed the shell in winscp to /bin/bash and sftp server to /bin/sftp-server from winscp tab .still getting the same error.this eeror occurs in windows 2003.i can succesfull login with public key authentication from a openssh server installed on windows 2000/XP
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Have you checked server's logs?
_________________
Martin Prikryl
dashah76
[View user's profile]

Joined: 2008-12-11
Posts: 9
Location: india
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
dashah76
[View user's profile]

Joined: 2008-12-11
Posts: 9
Location: india
The evenid gives this erorr 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Maybe this post helps you:
http://cygwin.com/ml/cygwin/2004-05/msg00862.html
_________________
Martin Prikryl
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License