Cannot get real path for '.'.

Advertisement

bpbiszkopt
Guest

Cannot get real path for '.'.

Hello,
i trying to solve why i can't chroot user in sftp.
ChrootDirecotory has chmod 755, chown to root.
But when i trying to connect by winscp i have
Cannot get real path for '.'.
No such file or directory.
Error code: 2
Error message from server: No such file
If i disable option chrootdirecotry winscp connects successfully to this folder.
Server-sftp log
debug1: user owsmerf matched 'User owsmerf' at line 119
debug3: match found
debug3: reprocess config:120 setting ChrootDirectory /mnt/test
debug3: reprocess config:121 setting PasswordAuthentication yes
debug3: reprocess config:122 setting X11Forwarding no
debug3: reprocess config:125 setting AllowTcpForwarding no
debug3: reprocess config:126 setting ForceCommand internal-sftp
debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
debug3: mm_request_send entering: type 9
debug2: monitor_read: 8 used once, disabling now
debug2: input_userauth_request: setting up authctxt for owsmerf [preauth]
debug3: mm_inform_authserv entering [preauth]
debug3: mm_request_send entering: type 4 [preauth]
debug2: input_userauth_request: try method none [preauth]
debug3: userauth_finish: failure partial=0 next methods="publickey,password,keyboard-interactive" [preauth]
debug3: send packet: type 51 [preauth]
debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user owsmerf service ssh-connection method keyboard-interactive [preauth]
debug1: attempt 1 failures 0 [preauth]
debug2: input_userauth_request: try method keyboard-interactive [preauth]
debug1: keyboard-interactive devs  [preauth]
debug1: auth2_challenge: user=owsmerf devs= [preauth]
debug1: kbdint_alloc: devices '' [preauth]
debug2: auth2_challenge_start: devices  [preauth]
debug3: userauth_finish: failure partial=0 next methods="publickey,password,keyboard-interactive" [preauth]
debug3: send packet: type 51 [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 4
debug3: mm_answer_authserv: service=ssh-connection, style=
debug2: monitor_read: 4 used once, disabling now
debug3: receive packet: type 50 [preauth]
debug1: userauth-request for user owsmerf service ssh-connection method password [preauth]
debug1: attempt 2 failures 1 [preauth]
debug2: input_userauth_request: try method password [preauth]
debug3: mm_auth_password entering [preauth]
debug3: mm_request_send entering: type 12 [preauth]
debug3: mm_auth_password: waiting for MONITOR_ANS_AUTHPASSWORD [preauth]
debug3: mm_request_receive_expect entering: type 13 [preauth]
debug3: mm_request_receive entering [preauth]
debug3: mm_request_receive entering
debug3: monitor_read: checking request 12
Could not get shadow information for owsmerf
debug3: mm_answer_authpassword: sending result 1
debug3: mm_request_send entering: type 13
Accepted password
debug1: monitor_child_preauth: owsmerf has been authenticated by privileged process
debug3: mm_get_keystate: Waiting for new keys
debug3: mm_request_receive_expect entering: type 26
debug3: mm_request_receive entering
debug3: mm_get_keystate: GOT new keys
debug3: mm_auth_password: user authenticated [preauth]
debug3: send packet: type 52 [preauth]
debug3: mm_request_send entering: type 26 [preauth]
debug3: mm_send_keystate: Finished sending state [preauth]
debug1: monitor_read_log: child log fd closed
debug3: ssh_sandbox_parent_finish: finished
User child is on pid 19645
debug3: safely_chroot: checking '/'
debug3: safely_chroot: checking '/mnt/'
debug3: safely_chroot: checking '/mnt/test'
Changed root directory to "/mnt/test"
debug1: permanently_set_uid: 1000/10008
debug3: monitor_apply_keystate: packet_set_state
debug2: set_newkeys: mode 0
debug1: rekey after 4294967296 blocks
debug2: set_newkeys: mode 1
debug1: rekey after 4294967296 blocks
debug1: ssh_packet_set_postauth: called
debug3: ssh_packet_set_state: done
debug3: notify_hostkeys: key 0: ssh-rsa SHA256:fUCEN7nIrhjB4hmBaZGCAazs8NhjFZAng7FJq+ULwN4
debug3: notify_hostkeys: key 2: ecdsa-sha2-nistp256 SHA256:C+e/6VekhNNLipwaQ7TxyHe2sHBiTZHFfv32rDjoxuA
debug3: notify_hostkeys: key 3: ssh-ed25519 SHA256:vPqw2xS04KMzAxxhUp716p536qhBatXpYucv9R3fgQE
debug3: notify_hostkeys: sent 3 hostkeys
debug3: send packet: type 80
debug1: Entering interactive session for SSH2.
debug2: fd 5 setting O_NONBLOCK
debug2: fd 6 setting O_NONBLOCK
debug1: server_init_dispatch
debug3: receive packet: type 2
debug3: Received SSH2_MSG_IGNORE
debug3: receive packet: type 90
debug1: server_input_channel_open: ctype session rchan 256 win 2147483647 max 16384
debug1: input_session_request
debug1: channel 0: new [server-session]
debug2: session_new: allocate (allocated 0 max 2)
debug3: session_unused: session id 0 unused
debug1: session_new: session 0
debug1: session_open: channel 0
debug1: session_open: session 0: link with channel 0
debug1: server_input_channel_open: confirm session
debug3: send packet: type 91
debug3: receive packet: type 98
debug1: server_input_channel_req: channel 0 request simple@putty.projects.tartarus.org reply 0
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req simple@putty.projects.tartarus.org
debug3: receive packet: type 98
debug1: server_input_channel_req: channel 0 request subsystem reply 1
debug1: session_by_channel: session 0 channel 0
debug1: session_input_channel_req: session 0 req subsystem
debug2: subsystem request for sftp by user owsmerf
debug1: subsystem: internal-sftp
Starting session: forced-command (config) 'internal-sftp' 
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x08
debug2: fd 9 setting O_NONBLOCK
debug2: fd 8 setting O_NONBLOCK
debug2: fd 11 setting O_NONBLOCK
debug3: send packet: type 99
debug2: channel 0: read 13 from efd 11
debug3: channel 0: discard efd


Winscp-log

. 2018-12-11 09:44:17.352 Session name: sftp_route (Modified site)
. 2018-12-11 09:44:17.352 Host name: 
. 2018-12-11 09:44:17.352 User name: owsmerf (Password: No, Key file: No, Passphrase: No)
. 2018-12-11 09:44:17.352 Tunnel: No
. 2018-12-11 09:44:17.352 Transfer Protocol: SFTP (SCP)
. 2018-12-11 09:44:17.352 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2018-12-11 09:44:17.352 Disable Nagle: No
. 2018-12-11 09:44:17.352 Proxy: None
. 2018-12-11 09:44:17.352 Send buffer: 262144
. 2018-12-11 09:44:17.352 SSH protocol version: 2; Compression: No
. 2018-12-11 09:44:17.352 Bypass authentication: No
. 2018-12-11 09:44:17.352 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2018-12-11 09:44:17.352 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom: 
. 2018-12-11 09:44:17.352 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2018-12-11 09:44:17.352 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2018-12-11 09:44:17.352 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2018-12-11 09:44:17.352 Simple channel: Yes
. 2018-12-11 09:44:17.352 Return code variable: Autodetect; Lookup user groups: Auto
. 2018-12-11 09:44:17.352 Shell: default
. 2018-12-11 09:44:17.352 EOL: LF, UTF: Auto
. 2018-12-11 09:44:17.352 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2018-12-11 09:44:17.352 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No
. 2018-12-11 09:44:17.352 SFTP Bugs: Auto,Auto
. 2018-12-11 09:44:17.352 SFTP Server: default
. 2018-12-11 09:44:17.352 Local directory: C:\Users\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2018-12-11 09:44:17.352 Cache directory changes: Yes, Permanent: Yes
. 2018-12-11 09:44:17.352 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2018-12-11 09:44:17.352 DST mode: Unix
. 2018-12-11 09:44:17.352 --------------------------------------------------------------------------
. 2018-12-11 09:44:17.415 Selecting events 63 for socket 1172
. 2018-12-11 09:44:17.415 We claim version: SSH-2.0-WinSCP_release_5.13.5
. 2018-12-11 09:44:17.430 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:17.430 Looking for incoming data
. 2018-12-11 09:44:17.430 Looking for network events
. 2018-12-11 09:44:17.430 Detected network event
. 2018-12-11 09:44:17.430 Enumerating network events for socket 1172
. 2018-12-11 09:44:17.430 Enumerated 18 network events making 18 cumulative events for socket 1172
. 2018-12-11 09:44:17.430 Handling network write event on socket 1172 with error 0
. 2018-12-11 09:44:17.430 Handling network connect event on socket 1172 with error 0
. 2018-12-11 09:44:17.430 Looking for network events
. 2018-12-11 09:44:17.493 Detected network event
. 2018-12-11 09:44:17.493 Enumerating network events for socket 1172
. 2018-12-11 09:44:17.493 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:17.493 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:17.493 Server version: SSH-2.0-OpenSSH_7.4
. 2018-12-11 09:44:17.493 Using SSH protocol version 2
. 2018-12-11 09:44:17.493 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:17.493 Looking for incoming data
. 2018-12-11 09:44:17.493 Looking for network events
. 2018-12-11 09:44:17.508 Detected network event
. 2018-12-11 09:44:17.508 Enumerating network events for socket 1172
. 2018-12-11 09:44:17.508 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:17.508 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:17.508 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2018-12-11 09:44:17.539 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:17.539 Looking for incoming data
. 2018-12-11 09:44:17.539 Looking for network events
. 2018-12-11 09:44:17.711 Detected network event
. 2018-12-11 09:44:17.711 Enumerating network events for socket 1172
. 2018-12-11 09:44:17.711 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:17.711 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:18.320 Server also has ecdsa-sha2-nistp256/ssh-rsa host keys, but we don't know any of them
. 2018-12-11 09:44:18.320 Host key fingerprint is:
. 2018-12-11 09:44:18.320 ssh-ed25519 256 b4:15:b4:57:07:e3:dc:55:d5:54:55:cf:62:be:d7:8e vPqw2xS04KMzAxxhUp716p536qhBatXpYucv9R3fgQE=
. 2018-12-11 09:44:18.320 Verifying host key ssh-ed25519 0x26cb968db233e315 2c8e09d7d2739f8c ec8b360be1b2e86c ae35973c3077b36a ,0x58f14e9b9b1ad1f9 9334b26a1e261629 c79d7036deeec422 f2723bc6b6a75fb8  with fingerprints ssh-ed25519 256 b4:15:b4:57:07:e3:dc:55:d5:54:55:cf:62:be:d7:8e vPqw2xS04KMzAxxhUp716p536qhBatXpYucv9R3fgQE=
. 2018-12-11 09:44:18.367 Asking user:
. 2018-12-11 09:44:18.367 **Continue connecting to an unknown server and add its host key to a cache?**
. 2018-12-11 09:44:18.367 
. 2018-12-11 09:44:18.367 The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
. 2018-12-11 09:44:18.367 
. 2018-12-11 09:44:18.367 The server's Ed25519 key details are:
. 2018-12-11 09:44:18.367 
. 2018-12-11 09:44:18.367     Algorithm:   ssh-ed25519 256
. 2018-12-11 09:44:18.367     SHA-256:   vPqw2xS04KMzAxxhUp716p536qhBatXpYucv9R3fgQE=
. 2018-12-11 09:44:18.367     MD5:   b4:15:b4:57:07:e3:dc:55:d5:54:55:cf:62:be:d7:8e
. 2018-12-11 09:44:18.367 
. 2018-12-11 09:44:18.367 If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel. ()
. 2018-12-11 09:44:20.338 Selecting events 63 for socket 1172
. 2018-12-11 09:44:20.338 Initialised AES-256 SDCTR client->server encryption
. 2018-12-11 09:44:20.338 Initialised HMAC-SHA-256 client->server MAC algorithm
. 2018-12-11 09:44:20.338 Initialised AES-256 SDCTR server->client encryption
. 2018-12-11 09:44:20.338 Initialised HMAC-SHA-256 server->client MAC algorithm
. 2018-12-11 09:44:20.338 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:20.338 Looking for incoming data
. 2018-12-11 09:44:20.338 Looking for network events
. 2018-12-11 09:44:20.338 Detected network event
. 2018-12-11 09:44:20.338 Enumerating network events for socket 1172
. 2018-12-11 09:44:20.338 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:20.338 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:20.338 Pageant is running. Requesting keys.
. 2018-12-11 09:44:20.338 Pageant has 0 SSH-2 keys
! 2018-12-11 09:44:20.338 Using username "owsmerf".
. 2018-12-11 09:44:20.353 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:20.353 Looking for incoming data
. 2018-12-11 09:44:20.353 Looking for network events
. 2018-12-11 09:44:20.353 Detected network event
. 2018-12-11 09:44:20.353 Enumerating network events for socket 1172
. 2018-12-11 09:44:20.353 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:20.353 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:20.353 Server offered these authentication methods: publickey,password,keyboard-interactive
. 2018-12-11 09:44:20.353 Attempting keyboard-interactive authentication
. 2018-12-11 09:44:20.353 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:20.353 Looking for incoming data
. 2018-12-11 09:44:20.353 Looking for network events
. 2018-12-11 09:44:20.353 Detected network event
. 2018-12-11 09:44:20.353 Enumerating network events for socket 1172
. 2018-12-11 09:44:20.369 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:20.369 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:20.369 Server refused keyboard-interactive authentication
. 2018-12-11 09:44:20.369 Server offered these authentication methods: publickey,password,keyboard-interactive
. 2018-12-11 09:44:20.369 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2018-12-11 09:44:22.670 Sent password
. 2018-12-11 09:44:22.670 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:22.670 Looking for incoming data
. 2018-12-11 09:44:22.670 Looking for network events
. 2018-12-11 09:44:22.686 Detected network event
. 2018-12-11 09:44:22.686 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.686 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.686 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.686 Access granted
. 2018-12-11 09:44:22.686 Opening session as main channel
. 2018-12-11 09:44:22.686 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:22.686 Looking for incoming data
. 2018-12-11 09:44:22.686 Looking for network events
. 2018-12-11 09:44:22.717 Detected network event
. 2018-12-11 09:44:22.717 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.717 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.717 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.717 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:22.717 Looking for incoming data
. 2018-12-11 09:44:22.717 Looking for network events
. 2018-12-11 09:44:22.921 Detected network event
. 2018-12-11 09:44:22.921 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.921 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.921 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.921 Opened main channel
. 2018-12-11 09:44:22.921 Waiting for the server to continue with the initialization
. 2018-12-11 09:44:22.921 Looking for incoming data
. 2018-12-11 09:44:22.921 Looking for network events
. 2018-12-11 09:44:22.952 Detected network event
. 2018-12-11 09:44:22.952 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.952 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.952 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.952 Started a shell/command
. 2018-12-11 09:44:22.983 --------------------------------------------------------------------------
. 2018-12-11 09:44:22.983 Using SFTP protocol.
. 2018-12-11 09:44:22.983 Doing startup conversation with host.
. 2018-12-11 09:44:22.983 Session upkeep
. 2018-12-11 09:44:22.983 Looking for network events
. 2018-12-11 09:44:22.983 Timeout waiting for network events
> 2018-12-11 09:44:22.999 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2018-12-11 09:44:22.999 01,00,00,00,06,
. 2018-12-11 09:44:22.999 Sent 9 bytes
. 2018-12-11 09:44:22.999 There are 0 bytes remaining in the send buffer
. 2018-12-11 09:44:22.999 Looking for network events
. 2018-12-11 09:44:22.999 Timeout waiting for network events
. 2018-12-11 09:44:22.999 Waiting for another 4 bytes
. 2018-12-11 09:44:22.999 Looking for incoming data
. 2018-12-11 09:44:22.999 Looking for network events
. 2018-12-11 09:44:22.999 Detected network event
. 2018-12-11 09:44:22.999 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.999 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.999 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.999 Received 154 bytes (0)
. 2018-12-11 09:44:22.999 Read 4 bytes (150 pending)
. 2018-12-11 09:44:22.999 Read 150 bytes (0 pending)
< 2018-12-11 09:44:22.999 Type: SSH_FXP_VERSION, Size: 150, Number: -1
< 2018-12-11 09:44:22.999 02,00,00,00,03,00,00,00,18,70,6F,73,69,78,2D,72,65,6E,61,6D,65,40,6F,70,65,
< 2018-12-11 09:44:22.999 6E,73,73,68,2E,63,6F,6D,00,00,00,01,31,00,00,00,13,73,74,61,74,76,66,73,40,
< 2018-12-11 09:44:22.999 6F,70,65,6E,73,73,68,2E,63,6F,6D,00,00,00,01,32,00,00,00,14,66,73,74,61,74,
< 2018-12-11 09:44:22.999 76,66,73,40,6F,70,65,6E,73,73,68,2E,63,6F,6D,00,00,00,01,32,00,00,00,14,68,
< 2018-12-11 09:44:22.999 61,72,64,6C,69,6E,6B,40,6F,70,65,6E,73,73,68,2E,63,6F,6D,00,00,00,01,31,00,
< 2018-12-11 09:44:22.999 00,00,11,66,73,79,6E,63,40,6F,70,65,6E,73,73,68,2E,63,6F,6D,00,00,00,01,31,
. 2018-12-11 09:44:22.999 SFTP version 3 negotiated.
. 2018-12-11 09:44:22.999 Unknown server extension posix-rename@openssh.com="1"
. 2018-12-11 09:44:22.999 Supports statvfs@openssh.com extension version "2"
. 2018-12-11 09:44:22.999 Unknown server extension fstatvfs@openssh.com="2"
. 2018-12-11 09:44:22.999 Supports hardlink@openssh.com extension version "1"
. 2018-12-11 09:44:22.999 Unknown server extension fsync@openssh.com="1"
. 2018-12-11 09:44:22.999 We believe the server has signed timestamps bug
. 2018-12-11 09:44:22.999 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
. 2018-12-11 09:44:22.999 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2018-12-11 09:44:22.999 Changing directory to "/".
. 2018-12-11 09:44:22.999 Getting real path for '/'
> 2018-12-11 09:44:22.999 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
> 2018-12-11 09:44:22.999 10,00,00,00,10,00,00,00,01,2F,
. 2018-12-11 09:44:22.999 Sent 14 bytes
. 2018-12-11 09:44:22.999 There are 0 bytes remaining in the send buffer
. 2018-12-11 09:44:22.999 Looking for network events
. 2018-12-11 09:44:22.999 Timeout waiting for network events
. 2018-12-11 09:44:22.999 Waiting for another 4 bytes
. 2018-12-11 09:44:22.999 Looking for incoming data
. 2018-12-11 09:44:22.999 Looking for network events
. 2018-12-11 09:44:22.999 Detected network event
. 2018-12-11 09:44:22.999 Enumerating network events for socket 1172
. 2018-12-11 09:44:22.999 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:22.999 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:22.999 Received 33 bytes (0)
. 2018-12-11 09:44:22.999 Read 4 bytes (29 pending)
. 2018-12-11 09:44:22.999 Read 29 bytes (0 pending)
< 2018-12-11 09:44:22.999 Type: SSH_FXP_STATUS, Size: 29, Number: 16
< 2018-12-11 09:44:22.999 65,00,00,00,10,00,00,00,02,00,00,00,0C,4E,6F,20,73,75,63,68,20,66,69,6C,65,
< 2018-12-11 09:44:22.999 00,00,00,00,
< 2018-12-11 09:44:22.999 Status code: 2, Message: 16, Server: No such file, Language:  
* 2018-12-11 09:44:22.999 (ECommand) Error changing directory to '/'.
* 2018-12-11 09:44:22.999 Cannot get real path for '/'.
* 2018-12-11 09:44:22.999 No such file or directory.
* 2018-12-11 09:44:22.999 Error code: 2
* 2018-12-11 09:44:22.999 Error message from server: No such file
. 2018-12-11 09:44:23.999 Session upkeep
. 2018-12-11 09:44:23.999 Looking for network events
. 2018-12-11 09:44:23.999 Timeout waiting for network events
. 2018-12-11 09:44:24.985 Getting current directory name.
. 2018-12-11 09:44:24.985 Getting real path for '.'
> 2018-12-11 09:44:24.985 Type: SSH_FXP_REALPATH, Size: 10, Number: 272
> 2018-12-11 09:44:24.985 10,00,00,01,10,00,00,00,01,2E,
. 2018-12-11 09:44:24.985 Sent 14 bytes
. 2018-12-11 09:44:24.985 There are 0 bytes remaining in the send buffer
. 2018-12-11 09:44:24.985 Looking for network events
. 2018-12-11 09:44:24.985 Timeout waiting for network events
. 2018-12-11 09:44:24.985 Waiting for another 4 bytes
. 2018-12-11 09:44:24.985 Looking for incoming data
. 2018-12-11 09:44:24.985 Looking for network events
. 2018-12-11 09:44:24.985 Detected network event
. 2018-12-11 09:44:24.985 Enumerating network events for socket 1172
. 2018-12-11 09:44:24.985 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:24.985 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:24.985 Received 33 bytes (0)
. 2018-12-11 09:44:24.985 Read 4 bytes (29 pending)
. 2018-12-11 09:44:24.985 Read 29 bytes (0 pending)
< 2018-12-11 09:44:24.985 Type: SSH_FXP_STATUS, Size: 29, Number: 272
< 2018-12-11 09:44:24.985 65,00,00,01,10,00,00,00,02,00,00,00,0C,4E,6F,20,73,75,63,68,20,66,69,6C,65,
< 2018-12-11 09:44:24.985 00,00,00,00,
< 2018-12-11 09:44:24.985 Status code: 2, Message: 272, Server: No such file, Language:  
* 2018-12-11 09:44:24.985 (ECommand) Error getting name of current remote directory.
* 2018-12-11 09:44:24.985 Cannot get real path for '.'.
* 2018-12-11 09:44:24.985 No such file or directory.
* 2018-12-11 09:44:24.985 Error code: 2
* 2018-12-11 09:44:24.985 Error message from server: No such file
. 2018-12-11 09:44:24.985 Session upkeep
. 2018-12-11 09:44:24.985 Looking for network events
. 2018-12-11 09:44:24.985 Timeout waiting for network events
. 2018-12-11 09:44:25.891 Session upkeep
. 2018-12-11 09:44:25.891 Looking for network events
. 2018-12-11 09:44:25.891 Timeout waiting for network events
. 2018-12-11 09:44:25.907 Getting current directory name.
. 2018-12-11 09:44:25.907 Getting real path for '.'
> 2018-12-11 09:44:25.907 Type: SSH_FXP_REALPATH, Size: 10, Number: 528
> 2018-12-11 09:44:25.907 10,00,00,02,10,00,00,00,01,2E,
. 2018-12-11 09:44:25.907 Sent 14 bytes
. 2018-12-11 09:44:25.907 There are 0 bytes remaining in the send buffer
. 2018-12-11 09:44:25.907 Looking for network events
. 2018-12-11 09:44:25.907 Timeout waiting for network events
. 2018-12-11 09:44:25.907 Waiting for another 4 bytes
. 2018-12-11 09:44:25.907 Looking for incoming data
. 2018-12-11 09:44:25.907 Looking for network events
. 2018-12-11 09:44:25.907 Detected network event
. 2018-12-11 09:44:25.907 Enumerating network events for socket 1172
. 2018-12-11 09:44:25.907 Enumerated 1 network events making 1 cumulative events for socket 1172
. 2018-12-11 09:44:25.907 Handling network read event on socket 1172 with error 0
. 2018-12-11 09:44:25.907 Received 33 bytes (0)
. 2018-12-11 09:44:25.907 Read 4 bytes (29 pending)
. 2018-12-11 09:44:25.907 Read 29 bytes (0 pending)
< 2018-12-11 09:44:25.907 Type: SSH_FXP_STATUS, Size: 29, Number: 528
< 2018-12-11 09:44:25.907 65,00,00,02,10,00,00,00,02,00,00,00,0C,4E,6F,20,73,75,63,68,20,66,69,6C,65,
< 2018-12-11 09:44:25.907 00,00,00,00,
< 2018-12-11 09:44:25.907 Status code: 2, Message: 528, Server: No such file, Language:  
* 2018-12-11 09:44:25.907 (ECommand) Error getting name of current remote directory.
* 2018-12-11 09:44:25.907 Cannot get real path for '.'.
* 2018-12-11 09:44:25.907 No such file or directory.
* 2018-12-11 09:44:25.907 Error code: 2
* 2018-12-11 09:44:25.907 Error message from server: No such file
. 2018-12-11 09:44:26.911 Session upkeep
. 2018-12-11 09:44:26.911 Looking for network events
. 2018-12-11 09:44:26.911 Timeout waiting for network events

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
30,020
Location:
Prague, Czechia

Re: Cannot get real path for '.'.

Can you login with any other SFTP client? Or even SSH terminal?

Reply with quote

bpbiszkopt
Guest

Re: Cannot get real path for '.'.

martin wrote:

Can you login with any other SFTP client? Or even SSH terminal?

Server is configured to only sftp connection, ssh goes but it's dropped.
As I wrote earlier if I turn off chroot directory connection is successful.
I tried filezilla but it also fails.

I don't understand this error, what is mean "cannot get real path" error 2, wrong chmod/chown?
I don't see anything weird in ssh log.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
30,020
Location:
Prague, Czechia

Re: Cannot get real path for '.'.

bpbiszkopt wrote:

I don't understand this error, what is mean "cannot get real path" error 2, wrong chmod/chown?
I don't see anything weird in ssh log.
I do not know, what is the root cause for the problem. You better ask on some server-related site. Like Super User or Server Fault.

Reply with quote

Advertisement

You can post new topics in this forum