Cannot get real path WinSCP error but no error in other SFTP clients

Advertisement

Infrastructure
Joined:
Posts:
1

Cannot get real path WinSCP error but no error in other SFTP clients

Following an upgrade of my Cygwin installation from Cygwin version 1.7.32 to 2.7.0 my WinSCP as the only SSH/SFTP client can no longer navigate into the folders in his \home directory. Home directory has two folders called in and out and although the user is still able to view list them as usual the moment he changes path to /in or /out he receives error

For example:
Cannot get real path for '/cygdrive/f/username/in'.
Permission denied.
Error code: 3
Error message from server: Permission denied
This also happens if the user tries to enter the parent folder by clicking on ... I have also noticed that prior to Cygwin upgrade if the user tried entering .. folder they would receive a slightly different but more familiar error denied:
Permission denied.
Error code: 3
Error message from server: Permission denied
Other clients such as Linux SSH, PuTTY PSFTP or FileZilla do not produce the permission denied problem and continue working as expected allowing the user to navigate into in and out folders.

This happens on all versions of WinSCP I used old and the latest and there has been no changes to the operating systems or permissions on my system apart from Cygwin upgrade.

I have also noticed that if the protocol is changed from SFTP to SCP then WinSCP is not suffering from this error.

Any help is greatly appreciated.
Many thanks.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: Cannot get real path WinSCP error but no error in other SFTP clients

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Though the problem is likely with the server anyway. WinSCP is the possibly the only widespread SFTP client that actually follows the specification by normalizing the entered paths ("get real path") - If the server has problems with that, you will have problems with WinSCP, but not with the other clients. That does not mean it's WinSCP fault.

Reply with quote

kbirc
Guest

Re: Cannot get real path WinSCP error but no error in other SFTP clients

Hi, sorry to reply to an old thread, but we have just had this error and we found the issue was with the host folder having an upper case character but the username was all lowercase.

Hope this helps somebody :)

Reply with quote

ercolino85769
Joined:
Posts:
3
Location:
Italy

I have the same problem

Impossibile determinare percorso reale per '/cygdrive/e/SFTP/collinosftp'.
Permesso negato.
Codice errore: 3
Messaggio errore dal server: Permission denied
with other client SFTP works, and if I put the protocol SCP works

The log:
 We will use UTF-8 strings until server sends an invalid UTF-8 string as with SFTP version 3 and older UTF-8 strings are not mandatory
. 2022-02-02 21:57:54.960 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2022-02-02 21:57:54.961 Changing directory to "/cygdrive/e/SFTP/collinosftp".
. 2022-02-02 21:57:54.961 Getting real path for '/cygdrive/e/SFTP/collinosftp'
> 2022-02-02 21:57:54.961 Type: SSH_FXP_REALPATH, Size: 37, Number: 9488
< 2022-02-02 21:57:55.007 Type: SSH_FXP_STATUS, Size: 34, Number: 9488
< 2022-02-02 21:57:55.007 Status code: 3, Message: 9488, Server: Permission denied, Language:  
* 2022-02-02 21:57:55.007 (ECommand) Errore cambiamento cartella su '/cygdrive/e/SFTP/collinosftp'.
* 2022-02-02 21:57:55.007 Impossibile determinare percorso reale per '/cygdrive/e/SFTP/collinosftp'.
* 2022-02-02 21:57:55.007 Permesso negato.
* 2022-02-02 21:57:55.007 Codice errore: 3
* 2022-02-02 21:57:55.007 Messaggio errore dal server: Permission denied
. 2022-02-02 21:57:57.787 Getting current directory name.
. 2022-02-02 21:57:57.788 Getting real path for '.'
> 2022-02-02 21:57:57.788 Type: SSH_FXP_REALPATH, Size: 10, Number: 9744
< 2022-02-02 21:57:57.834 Type: SSH_FXP_NAME, Size: 77, Number: 9744
. 2022-02-02 21:57:57.835 Real path is '/cygdrive/e/SFTP/collinosftp'
. 2022-02-02 21:57:57.926 Listing directory "/cygdrive/e/SFTP/collinosftp".
> 2022-02-02 21:57:57.927 Type: SSH_FXP_OPENDIR, Size: 37, Number: 9995
< 2022-02-02 21:57:57.977 Type: SSH_FXP_HANDLE, Size: 13, Number: 9995
> 2022-02-02 21:57:57.978 Type: SSH_FXP_READDIR, Size: 13, Number: 10252
< 2022-02-02 21:57:58.037 Type: SSH_FXP_NAME, Size: 439, Number: 10252
> 2022-02-02 21:57:58.037 Type: SSH_FXP_READDIR, Size: 13, Number: 10508
< 2022-02-02 21:57:58.083 Type: SSH_FXP_STATUS, Size: 28, Number: 10508
< 2022-02-02 21:57:58.083 Status code: 1
> 2022-02-02 21:57:58.084 Type: SSH_FXP_CLOSE, Size: 13, Number: 10756
. 2022-02-02 21:57:58.084 ..;d;0;2009-04-22T20:22:05.000Z;3;"Unknown+User" [-1];"None" [197121];rwx-wx---;0
. 2022-02-02 21:57:58.084 Export;d;0;2022-02-02T15:29:51.000Z;3;"Unknown+User" [-1];"None" [197121];---rwx---;0
. 2022-02-02 21:57:58.084 Import;d;0;2021-11-15T14:32:04.000Z;3;"Unknown+User" [-1];"None" [197121];---rwx---;0
. 2022-02-02 21:57:58.141 Startup conversation with host finished.
. 2022-02-02 21:57:58.440 Not refreshing directory, caching is off.
. 2022-02-02 21:57:59.356 Changing directory to "Export".
. 2022-02-02 21:57:59.356 Getting real path for '/cygdrive/e/SFTP/collinosftp/Export'
> 2022-02-02 21:57:59.357 Type: SSH_FXP_REALPATH, Size: 44, Number: 11024
< 2022-02-02 21:57:59.412 Type: SSH_FXP_STATUS, Size: 24, Number: 10756
. 2022-02-02 21:57:59.412 Discarding reserved response
< 2022-02-02 21:57:59.459 Type: SSH_FXP_STATUS, Size: 34, Number: 11024
< 2022-02-02 21:57:59.459 Status code: 3, Message: 11024, Server: Permission denied, Language:  
* 2022-02-02 21:57:59.460 (ECommand) Errore cambiamento cartella su 'Export'.
* 2022-02-02 21:57:59.460 Impossibile determinare percorso reale per '/cygdrive/e/SFTP/collinosftp/Export'.
* 2022-02-02 21:57:59.460 Permesso negato.
* 2022-02-02 21:57:59.460 Codice errore: 3
* 2022-02-02 21:57:59.460 Messaggio errore dal server: Permission denied
. 2022-02-02 21:58:01.944 Changing directory to "Import".
. 2022-02-02 21:58:01.944 Getting real path for '/cygdrive/e/SFTP/collinosftp/Import'
> 2022-02-02 21:58:01.944 Type: SSH_FXP_REALPATH, Size: 44, Number: 11280
< 2022-02-02 21:58:02.001 Type: SSH_FXP_STATUS, Size: 34, Number: 11280
< 2022-02-02 21:58:02.001 Status code: 3, Message: 11280, Server: Permission denied, Language:  
* 2022-02-02 21:58:02.003 (ECommand) Errore cambiamento cartella su 'Import'.
* 2022-02-02 21:58:02.003 Impossibile determinare percorso reale per '/cygdrive/e/SFTP/collinosftp/Import'.
* 2022-02-02 21:58:02.003 Permesso negato.
* 2022-02-02 21:58:02.003 Codice errore: 3
* 2022-02-02 21:58:02.003 Messaggio errore dal server: Permission denied
. 2022-02-02 21:58:30.020 Closing connection.
. 2022-02-02 21:58:30.020 Sending special code: 1
. 2022-02-02 21:58:30.116 Session sent command exit status 0
. 2022-02-02 21:58:30.116 Main session channel closed
. 2022-02-02 21:58:30.117 All channels closed

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum