Topic "WinSCP error when reading remote directory"

Author Message
millerst
[View user's profile]

Joined: 2005-08-22
Posts: 3
Hi Martin, Idea I am trying to use WinSCP3.76 to SFTP to a windows sshd server called MKS SSHD which is based on OPENSSH. Public keys or login are accepted , however , when a directory listing is initiated.

Any ideas ? Enclosed are messages:

WinSCP error msg:
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 11

Event log on Windows server:
secshd.exe: error: setsid failed: Operation not permitted

. 2005-08-22 11:53:16.043 --------------------------------------------------------------------------
. 2005-08-22 11:53:16.043 WinSCP Version 3.7.5 (Build 294) (OS 5.1.2600 Service Pack 2)
. 2005-08-22 11:53:16.043 Login time: 22 August 2005 11:53:16
. 2005-08-22 11:53:16.043 --------------------------------------------------------------------------
. 2005-08-22 11:53:16.043 Session name: ########
. 2005-08-22 11:53:16.043 Host name: ########## (Port: 22)
. 2005-08-22 11:53:16.043 User name: #### (Password: No, Key file: Yes)
. 2005-08-22 11:53:16.043 Transfer Protocol: SFTP (SCP)
. 2005-08-22 11:53:16.043 SSH protocol version: 2; Compression: No
. 2005-08-22 11:53:16.043 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2005-08-22 11:53:16.043 Ciphers: des,aes,blowfish,3des,WARN; Ssh2DES: No
. 2005-08-22 11:53:16.043 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2005-08-22 11:53:16.043 SSH Bugs: -,-,-,-,-,-,-,-
. 2005-08-22 11:53:16.043 SFTP Bugs: -,-,-
. 2005-08-22 11:53:16.043 Proxy: none
. 2005-08-22 11:53:16.043 Return code variable: Autodetect; Lookup user groups: Yes
. 2005-08-22 11:53:16.043 Shell: default, EOL: 0
. 2005-08-22 11:53:16.043 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2005-08-22 11:53:16.043 Cache directory changes: Yes, Permanent: Yes
. 2005-08-22 11:53:16.043 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2005-08-22 11:53:16.043 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2005-08-22 11:53:16.043 --------------------------------------------------------------------------
. 2005-08-22 11:53:16.133 Looking up host "########"
. 2005-08-22 11:53:16.163 Connecting to ###### port 22
. 2005-08-22 11:53:16.173 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.193 Looking for incoming data
. 2005-08-22 11:53:16.223 Select result is 1
. 2005-08-22 11:53:16.233 Server version: SSH-1.99-OpenSSH_3.7p1
. 2005-08-22 11:53:16.233 We claim version: SSH-2.0-WinSCP_release_3.7.5
. 2005-08-22 11:53:16.243 Using SSH protocol version 2
. 2005-08-22 11:53:16.254 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.264 Looking for incoming data
. 2005-08-22 11:53:16.274 Select result is 1
. 2005-08-22 11:53:16.284 Doing Diffie-Hellman group exchange
. 2005-08-22 11:53:16.284 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.294 Looking for incoming data
. 2005-08-22 11:53:16.404 Select result is 1
. 2005-08-22 11:53:16.414 Doing Diffie-Hellman key exchange
. 2005-08-22 11:53:16.474 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.484 Looking for incoming data
. 2005-08-22 11:53:16.494 Select result is 1
. 2005-08-22 11:53:16.554 Host key fingerprint is:
. 2005-08-22 11:53:16.564 ssh-rsa 1024 37:c9:de:69:4a:59:d9:8d:03:79:a2:f0:d3:d7:4e:71
. 2005-08-22 11:53:16.574 Initialised AES-256 client->server encryption
. 2005-08-22 11:53:16.584 Initialised HMAC-SHA1 client->server MAC algorithm
. 2005-08-22 11:53:16.604 Initialised AES-256 server->client encryption
. 2005-08-22 11:53:16.614 Initialised HMAC-SHA1 server->client MAC algorithm
. 2005-08-22 11:53:16.624 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.644 Looking for incoming data
. 2005-08-22 11:53:16.734 Select result is 1
! 2005-08-22 11:53:16.744 Using username "@@@@@".
. 2005-08-22 11:53:16.754 Reading private key file "C:\Documents and Settings\user\.ssh\putty_key.ppk"
. 2005-08-22 11:53:16.774 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.784 Looking for incoming data
. 2005-08-22 11:53:16.794 Select result is 1
. 2005-08-22 11:53:16.804 Pageant is running. Requesting keys.
. 2005-08-22 11:53:16.824 Pageant has 0 SSH-2 keys
. 2005-08-22 11:53:16.834 Offered public key
. 2005-08-22 11:53:16.844 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:16.864 Looking for incoming data
. 2005-08-22 11:53:16.965 Select result is 1
. 2005-08-22 11:53:16.975 Offer of public key accepted
! 2005-08-22 11:53:16.995 Authenticating with public key "imported-openssh-key"
. 2005-08-22 11:53:17.055 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:17.075 Looking for incoming data
. 2005-08-22 11:53:17.185 Select result is 1
. 2005-08-22 11:53:17.205 Access granted
. 2005-08-22 11:53:17.225 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:17.245 Looking for incoming data
. 2005-08-22 11:53:17.275 Select result is 1
. 2005-08-22 11:53:17.295 Opened channel for session
. 2005-08-22 11:53:17.315 Waiting for the server to continue with the initialisation
. 2005-08-22 11:53:17.335 Looking for incoming data
. 2005-08-22 11:53:17.475 Select result is 1
. 2005-08-22 11:53:17.495 Started a shell/command
. 2005-08-22 11:53:17.515 --------------------------------------------------------------------------
. 2005-08-22 11:53:17.545 Using SFTP protocol.
. 2005-08-22 11:53:17.565 Doing startup conversation with host.
> 2005-08-22 11:53:17.595 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2005-08-22 11:53:17.615 01,00,00,00,05,
. 2005-08-22 11:53:17.646 There are 0 bytes remaining in the send buffer
. 2005-08-22 11:53:17.666 Waiting for another 4 bytes
. 2005-08-22 11:53:17.696 Looking for incoming data
. 2005-08-22 11:53:17.716 Select result is 1
< 2005-08-22 11:53:17.746 Type: SSH_FXP_VERSION, Size: 5, Number: -1
< 2005-08-22 11:53:17.776 02,00,00,00,03,
. 2005-08-22 11:53:17.796 SFTP version 3 negotiated.
. 2005-08-22 11:53:17.826 We believe the server has signed timestamps bug
. 2005-08-22 11:53:17.856 We will use UTF-8 strings for status messages only
. 2005-08-22 11:53:17.886 Getting current directory name.
. 2005-08-22 11:53:17.906 Getting real path for '.'
> 2005-08-22 11:53:17.936 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
> 2005-08-22 11:53:17.966 10,00,00,00,10,00,00,00,01,2E,
. 2005-08-22 11:53:17.996 There are 0 bytes remaining in the send buffer
. 2005-08-22 11:53:18.026 Waiting for another 4 bytes
. 2005-08-22 11:53:18.056 Looking for incoming data
. 2005-08-22 11:53:18.076 Select result is 1
< 2005-08-22 11:53:18.106 Type: SSH_FXP_NAME, Size: 99, Number: 16
< 2005-08-22 11:53:18.136 68,00,00,00,10,00,00,00,01,00,00,00,27,43,3A,5C,44,6F,63,75,6D,65,6E,74,73,
< 2005-08-22 11:53:18.136 20,61,6E,64,20,53,65,74,74,69,6E,67,73,5C,41,64,6D,69,6E,69,73,74,72,61,74,
< 2005-08-22 11:53:18.136 6F,72,00,00,00,27,43,3A,5C,44,6F,63,75,6D,65,6E,74,73,20,61,6E,64,20,53,65,
< 2005-08-22 11:53:18.136 74,74,69,6E,67,73,5C,41,64,6D,69,6E,69,73,74,72,61,74,6F,72,00,00,00,00,
. 2005-08-22 11:53:18.206 Real path is 'C:\Documents and Settings\Administrator'
. 2005-08-22 11:53:18.236 Listing directory "C:\Documents and Settings\Administrator/C:\Documents and Settings\Administrator".
> 2005-08-22 11:53:18.256 Type: SSH_FXP_OPENDIR, Size: 88, Number: 267
> 2005-08-22 11:53:18.276 0B,00,00,01,0B,00,00,00,4F,43,3A,5C,44,6F,63,75,6D,65,6E,74,73,20,61,6E,64,
> 2005-08-22 11:53:18.276 20,53,65,74,74,69,6E,67,73,5C,41,64,6D,69,6E,69,73,74,72,61,74,6F,72,2F,43,
> 2005-08-22 11:53:18.276 3A,5C,44,6F,63,75,6D,65,6E,74,73,20,61,6E,64,20,53,65,74,74,69,6E,67,73,5C,
> 2005-08-22 11:53:18.276 41,64,6D,69,6E,69,73,74,72,61,74,6F,72,
. 2005-08-22 11:53:18.326 There are 0 bytes remaining in the send buffer
. 2005-08-22 11:53:18.357 Waiting for another 4 bytes
. 2005-08-22 11:53:18.377 Looking for incoming data
. 2005-08-22 11:53:18.397 Select result is 1
< 2005-08-22 11:53:18.427 Type: SSH_FXP_STATUS, Size: 29, Number: 267
< 2005-08-22 11:53:18.447 65,00,00,01,0B,00,00,00,02,00,00,00,0C,4E,6F,20,73,75,63,68,20,66,69,6C,65,
< 2005-08-22 11:53:18.447 00,00,00,00,
< 2005-08-22 11:53:18.487 Status/error code: 2, Message: 267, Server: No such file, Language:
* 2005-08-22 11:53:18.507 (ECommand) Error listing directory 'C:\Documents and Settings\Administrator'.
* 2005-08-22 11:53:18.507 No such file or directory.
* 2005-08-22 11:53:18.507 Error code: 2
* 2005-08-22 11:53:18.507 Error message from server: No such file
* 2005-08-22 11:53:18.507 Request code: 11
. 2005-08-22 11:54:25.643 Startup conversation with host finished.
. 2005-08-22 11:54:26.434 Session upkeep
. 2005-08-22 11:54:26.454 Select result is 1
. 2005-08-22 11:54:26.474 Detected incoming data while idle
. 2005-08-22 11:54:26.505 Received disconnect message (SSH_DISCONNECT_PROTOCOL_ERROR)
. 2005-08-22 11:54:26.525 Disconnection message text: Timeout, your session not responding.
. 2005-08-22 11:54:26.545 Server sent disconnect message
. 2005-08-22 11:54:26.545 type 2 (SSH_DISCONNECT_PROTOCOL_ERROR):
. 2005-08-22 11:54:26.545 "Timeout, your session not responding."
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
To me it seems like bug in the server. Can I get the server somewhere to test it myself?
_________________
Martin Prikryl
millerst
[View user's profile]

Joined: 2005-08-22
Posts: 3
Evaluation can be downloaded at http://www.mkssoftware.com/eval/
version 9.0 with patch level 1

The sshd software is running on both a windows 2000 and a windows 2003 server. I get the same error on both servers using winscp.

I have opened a case ticket with MKS Software on the issue.

Are there any questions do you want to forward to case ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
millerst wrote:
Evaluation can be downloaded at http://www.mkssoftware.com/eval/
version 9.0 with patch level 1

Can I download it directly or do I need to fill in that "request for evaluation"?

Quote:
Are there any questions do you want to forward to case ?

I've just noticed that the server uses backslashes as path separators, instead of forward slashes as SFTP specification requires. But the problem can be elsewhere. Hard to tell unless I have a change to test it. Have you tried other SFTP client?
_________________
Martin Prikryl
millerst
[View user's profile]

Joined: 2005-08-22
Posts: 3
Hi Martin,

For MKS Software I think you do have fill in a request for eval.

However,I tried Secure FX (Eval) ver 3.0.2 SFTP for windows client (could only use SSHv1) from www.vandyke.com. The client listed to remote directory and allowed me to copy files.

Hope this helps

What do you think the problem is ? Do you want me to try a new beta of winscp ?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
I have downloaded their server and I'll do testing tonight.
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
IMHO the server does not fullfil the SFTP specification for handling path names. I have tried several other GUI SFTP clients (Bitwise Tunnelier, Secure FX, Filezilla) and neither worked fully with the server. Neither the Secure FX. I wan't able to switch to another drive with it.
_________________
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