Cannot get real path for '.'.

Advertisement

garfy
Guest

Cannot get real path for '.'.

Hi,
I've installed freeSSHd, added a user 'bla' and when I connect using WinSCP I'll get a screen asking for my password but when I log in I'll get the error showing below. When I connect with Putty I can log in and I'll get D:\
In freeSSHd I put, in the SFTP tab, the home directory to D:\bla but it doesn't work.

Rights for the D:\ and D:\bla folder are both read & execute but it doesn't help.
Using administrator for login gives the same errors.

OS: Windows server 2008 R2
WinSCP: 4.3.4 (Build 1428) tried 5.1.4 (Build 3020) with same result
freeSSHD: 1.2.4

External firewall settings: OK for port 22
Windows firewall settings: OK for port 22

What am I doing wrong?

--------------------------------------------------------------------------
WinSCP Version 4.3.4 (Build 1428) (OS 6.1.7601 Service Pack 1)
Configuration: C:\winscp\WinSCP434.ini
Login time: zaterdag 15 juni 2013 12:09:07
--------------------------------------------------------------------------
Session name: bla@xxx.xxx.xxx.xxx (Ad-Hoc session)
Host name: xxx.xxx.xxx.xxx (Port: 22)
User name: bla (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: SFTP (SCP)
Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
SSH protocol version: 2; Compression: No
Bypass authentication: No
Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
Ciphers: aes,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
SSH Bugs: -,-,-,-,-,-,-,-,-
SFTP Bugs: -,-
Return code variable: Autodetect; Lookup user groups: Yes
Shell: default
EOL: 0, UTF: 2
Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Looking up host "xxx.xxx.xxx.xxx"
Connecting to xxx.xxx.xxx.xxx port 22
Server version: SSH-2.0-WeOnlyDo 2.1.3
We believe remote version has SSH-2 ignore bug
Using SSH protocol version 2
We claim version: SSH-2.0-WinSCP_release_4.3.4
Using Diffie-Hellman with standard group "group14"
Doing Diffie-Hellman key exchange with hash SHA-1
Host key fingerprint is:
ssh-rsa 1024 d5:53:75:64:0d:2a:d8:d1:93:d8:14:18:dc:d9:76:1f
Initialised AES-256 CBC client->server encryption
Initialised HMAC-SHA1 client->server MAC algorithm
Initialised AES-256 CBC server->client encryption
Initialised HMAC-SHA1 server->client MAC algorithm
Using username "bla".
Prompt (7, SSH password, , &Password: )
Using stored password.
Sent password
Access granted
Opened channel for session
Started a shell/command
--------------------------------------------------------------------------
Using SFTP protocol.
Doing startup conversation with host.
Type: SSH_FXP_INIT, Size: 5, Number: -1
Type: SSH_FXP_VERSION, Size: 5, Number: -1
SFTP version 3 negotiated.
We believe the server has signed timestamps bug
We will use UTF-8 strings for status messages only
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 16
Type: SSH_FXP_STATUS, Size: 29, Number: 16
Status code: 2, Message: 16, Server: No such file, Language:
(ECommand) Error getting name of current remote directory.
Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 272
Type: SSH_FXP_STATUS, Size: 29, Number: 272
Status code: 2, Message: 272, Server: No such file, Language:
(ECommand) Error getting name of current remote directory.
Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 528
Type: SSH_FXP_STATUS, Size: 29, Number: 528
Status code: 2, Message: 528, Server: No such file, Language:
(ECommand) Error getting name of current remote directory.
Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16
Listing directory "".
Type: SSH_FXP_OPENDIR, Size: 9, Number: 779
Type: SSH_FXP_STATUS, Size: 28, Number: 779
Status code: 5, Message: 779, Server: Bad message, Language:
(ECommand) Error listing directory ''.
Bad message (badly formatted packet or protocol incompatibility).
Error code: 5
Error message from server: Bad message
Request code: 11
Startup conversation with host finished.
Getting current directory name.
Getting real path for '.'
Type: SSH_FXP_REALPATH, Size: 10, Number: 1040
Type: SSH_FXP_STATUS, Size: 29, Number: 1040
Status code: 2, Message: 1040, Server: No such file, Language:
(ECommand) Error getting name of current remote directory.
Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 16

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Cannot get real path for '.'.

I can connect fine using WinSCP 4.3.4 and the latest version of freeSSHd.
Make sure the account that runs freeSSHd has an access to the D:\

Also you should definitely upgrade WinSCP.

Reply with quote

Advertisement

You can post new topics in this forum