Cannot access hidden directories in command line

Advertisement

omega1
Joined:
Posts:
6

Cannot access hidden directories in command line

Hello,

I seem to have an issue with accessing hidden folders using the command line. The folders I am trying to access are in the /root/ folder and are visible via FTP but not via WinSCP. If I load the WinSCP client and go to 'Options -> Preferences -> Panels' and tick 'Show hidden files' I can then see them in the client, but I need to use command line,

If I try and access them in command line it says 'Error listing directory '/root/.hcron'.

Is there a switch or something I can use to view/access these folders?

Many thanks in advance.

Reply with quote

Advertisement

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

Re: Cannot access hidden directories in command line

Please post session log files both for the successful listing of the folder in GUI and the failing listing in the "command line".

Reply with quote

omega1
Joined:
Posts:
6

Hi Martin, thanks for a quick response, Happy New Year to you!

The folder I need to get to is .hcron which is sat under the root folder. As you can see, it fails in command line but is visible in GUI (after enabling show hidden folders).

Thanks for your support, let me know if you need anything else to diagnose.

Command line output (not working):
C:\scripts>mkdir "c:\backups\files\hcron\"2021-01-01""
A subdirectory or file c:\backups\files\hcron\2021-01-01 already exists.
Searching for host...
Connecting to host...
Authenticating...
Using username "root".
Authenticating with pre-entered password.
Authenticated.
Starting the session...
Session started.
Active session: [1] root@myserver.com
Error listing directory '/root/.hcron'.
No such file or directory.
Error code: 2
Error message from server: No such file
(A)bort, (R)etry, (S)kip: Abort

c:\backups\files\2021-01-01>

From GUI (working):
. 2021-01-01 13:11:40.130 --------------------------------------------------------------------------
. 2021-01-01 13:11:40.130 WinSCP Version 5.17.6 (Build 10516) (OS 10.0.19041 - Windows 10 Enterprise)
. 2021-01-01 13:11:40.134 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2021-01-01 13:11:40.134 Log level: Normal
. 2021-01-01 13:11:40.134 Local account: NEWMONITOR\User
. 2021-01-01 13:11:40.134 Working directory: C:\Program Files (x86)\WinSCP
. 2021-01-01 13:11:40.134 Process ID: 8688
. 2021-01-01 13:11:40.134 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" 
. 2021-01-01 13:11:40.134 Time zone: Current: GMT+0, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 28/03/2021, DST End: 31/10/2021
. 2021-01-01 13:11:40.134 Login time: 01 January 2021 13:11:40
. 2021-01-01 13:11:40.134 --------------------------------------------------------------------------
. 2021-01-01 13:11:40.134 Session name: root@myserver.com (Site)
. 2021-01-01 13:11:40.134 Host name: myserver.com (Port: 8022)
. 2021-01-01 13:11:40.134 User name: root (Password: No, Key file: No, Passphrase: No)
. 2021-01-01 13:11:40.134 Tunnel: No
. 2021-01-01 13:11:40.134 Transfer Protocol: SFTP (SCP)
. 2021-01-01 13:11:40.134 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2021-01-01 13:11:40.134 Disable Nagle: No
. 2021-01-01 13:11:40.134 Proxy: None
. 2021-01-01 13:11:40.134 Send buffer: 262144
. 2021-01-01 13:11:40.134 SSH protocol version: 2; Compression: No
. 2021-01-01 13:11:40.134 Bypass authentication: No
. 2021-01-01 13:11:40.134 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2021-01-01 13:11:40.134 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom: 
. 2021-01-01 13:11:40.134 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2021-01-01 13:11:40.134 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2021-01-01 13:11:40.134 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2021-01-01 13:11:40.134 Simple channel: Yes
. 2021-01-01 13:11:40.134 Return code variable: Autodetect; Lookup user groups: Auto
. 2021-01-01 13:11:40.134 Shell: default
. 2021-01-01 13:11:40.134 EOL: LF, UTF: Auto
. 2021-01-01 13:11:40.134 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2021-01-01 13:11:40.134 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2021-01-01 13:11:40.134 SFTP Bugs: Auto,Auto
. 2021-01-01 13:11:40.134 SFTP Server: default
. 2021-01-01 13:11:40.134 Local directory: C:\backups\mysql\services, Remote directory: /root, Update: Yes, Cache: Yes
. 2021-01-01 13:11:40.134 Cache directory changes: Yes, Permanent: Yes
. 2021-01-01 13:11:40.134 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2021-01-01 13:11:40.134 DST mode: Unix
. 2021-01-01 13:11:40.134 --------------------------------------------------------------------------
. 2021-01-01 13:11:40.163 Looking up host "myserver.com" for SSH connection
. 2021-01-01 13:11:40.230 Connecting to 8.8.8.8 port 8022
. 2021-01-01 13:11:40.325 We claim version: SSH-2.0-WinSCP_release_5.17.6
. 2021-01-01 13:11:40.373 Remote version: SSH-2.0-OpenSSH_6.7p1 Debian-5
. 2021-01-01 13:11:40.373 Using SSH protocol version 2
. 2021-01-01 13:11:40.373 Have a known host key of type ssh-ed25519
. 2021-01-01 13:11:40.459 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2021-01-01 13:11:40.597 Server also has ecdsa-sha2-nistp256/ssh-rsa/ssh-dss host keys, but we don't know any of them
. 2021-01-01 13:11:40.597 Host key fingerprint is:
. 2021-01-01 13:11:40.597 ssh-ed25519 255 cd:ea:8a:c9:18:ae:32:42:6b:e6:b1:ea:5d:fc:22:d8 kLbbzVHMJ5P924y9bYQR3p8JrtXuH5r+xbbkl8RYuaA=
. 2021-01-01 13:11:40.601 Host key matches cached key
. 2021-01-01 13:11:40.604 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
. 2021-01-01 13:11:40.604 Initialised HMAC-SHA-256 outbound MAC algorithm
. 2021-01-01 13:11:40.604 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
. 2021-01-01 13:11:40.604 Initialised HMAC-SHA-256 inbound MAC algorithm
! 2021-01-01 13:11:40.671 Using username "root".
. 2021-01-01 13:11:40.785 Server offered these authentication methods: publickey,password
. 2021-01-01 13:11:40.785 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2021-01-01 13:11:44.351 Sent password
. 2021-01-01 13:11:44.414 Access granted
. 2021-01-01 13:11:44.418 Opening main session channel
. 2021-01-01 13:11:44.471 Opened main channel
. 2021-01-01 13:11:44.532 Started a shell/command
. 2021-01-01 13:11:44.563 --------------------------------------------------------------------------
. 2021-01-01 13:11:44.563 Using SFTP protocol.
. 2021-01-01 13:11:44.563 Doing startup conversation with host.
> 2021-01-01 13:11:44.574 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2021-01-01 13:11:44.639 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2021-01-01 13:11:44.639 SFTP version 3 negotiated.
. 2021-01-01 13:11:44.639 Unknown server extension posix-rename@openssh.com="1"
. 2021-01-01 13:11:44.639 Supports statvfs@openssh.com extension version "2"
. 2021-01-01 13:11:44.639 Unknown server extension fstatvfs@openssh.com="2"
. 2021-01-01 13:11:44.639 Supports hardlink@openssh.com extension version "1"
. 2021-01-01 13:11:44.639 Unknown server extension fsync@openssh.com="1"
. 2021-01-01 13:11:44.639 We believe the server has signed timestamps bug
. 2021-01-01 13:11:44.639 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
. 2021-01-01 13:11:44.639 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2021-01-01 13:11:44.639 Changing directory to "/root".
. 2021-01-01 13:11:44.639 Getting real path for '/root'
> 2021-01-01 13:11:44.639 Type: SSH_FXP_REALPATH, Size: 14, Number: 16
< 2021-01-01 13:11:44.689 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2021-01-01 13:11:44.689 Real path is '/root'
. 2021-01-01 13:11:44.689 Trying to open directory "/root".
> 2021-01-01 13:11:44.689 Type: SSH_FXP_LSTAT, Size: 14, Number: 263
< 2021-01-01 13:11:44.746 Type: SSH_FXP_ATTRS, Size: 37, Number: 263
. 2021-01-01 13:11:44.746 Getting current directory name.
. 2021-01-01 13:11:44.817 Listing directory "/root".
> 2021-01-01 13:11:44.817 Type: SSH_FXP_OPENDIR, Size: 14, Number: 523
< 2021-01-01 13:11:44.878 Type: SSH_FXP_HANDLE, Size: 13, Number: 523
> 2021-01-01 13:11:44.878 Type: SSH_FXP_READDIR, Size: 13, Number: 780
< 2021-01-01 13:11:44.935 Type: SSH_FXP_NAME, Size: 5683, Number: 780
> 2021-01-01 13:11:44.935 Type: SSH_FXP_READDIR, Size: 13, Number: 1036
< 2021-01-01 13:11:45.067 Type: SSH_FXP_STATUS, Size: 28, Number: 1036
< 2021-01-01 13:11:45.067 Status code: 1
> 2021-01-01 13:11:45.067 Type: SSH_FXP_CLOSE, Size: 13, Number: 1284
. 2021-01-01 13:11:45.067 .cmake;d;0;2020-04-07T02:17:10.000Z;3;"root" [0];"root" [0];rwxrwxr-x;2
. 2021-01-01 13:11:45.067 .config;d;0;2015-08-10T19:31:38.000Z;3;"root" [0];"root" [0];rwx------;2
. 2021-01-01 13:11:45.067 .rnd;-;1024;2020-04-07T02:17:10.000Z;3;"root" [0];"root" [0];rw-------;2
. 2021-01-01 13:11:45.067 .ssh;d;0;2016-09-30T17:04:52.000Z;3;"root" [0];"root" [0];rwx------;2
. 2021-01-01 13:11:45.067 generate_events.sh;-;129;2017-08-24T06:50:38.000Z;3;"root" [0];"root" [0];rwxr-xr-x;0
. 2021-01-01 13:11:45.067 .hcron;d;0;2016-09-30T15:56:39.000Z;3;"root" [0];"root" [0];rwxr-xr-x;2
. 2021-01-01 13:11:45.067 .php_history;-;0;2020-04-09T10:27:36.000Z;3;"root" [0];"root" [0];rw-------;2
. 2021-01-01 13:11:45.084 Startup conversation with host finished.

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Sorry, you are right. So can you access the folder using any SFTP client at all?
Also please post session log file from the script (not only the command-line output). Use /log=c:\some\path\winscp.log /loglevel=2

Reply with quote

omega1
Joined:
Posts:
6

Hi Martin, thanks for your continued help.

I can access fine with Filezilla in SFTP mode, all folders and files display and can be downloaded.

Here is output from command line:
. 2021-01-05 10:47:02.060 --------------------------------------------------------------------------
. 2021-01-05 10:47:02.060 WinSCP Version 5.17.6 (Build 10516) (OS 10.0.19041 - Windows 10 Enterprise)
. 2021-01-05 10:47:02.060 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2021-01-05 10:47:02.060 Log level: Normal
. 2021-01-05 10:47:02.060 Local account: NEWMONITOR\User
. 2021-01-05 10:47:02.060 Working directory: C:\scripts
. 2021-01-05 10:47:02.060 Process ID: 6100
. 2021-01-05 10:47:02.063 Command-line: "c:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.17.6 /consoleinstance=_8740_511 "/log=c:\scripts\winscp.log" "/command" "open sftp://root:***@myserver.com:8022" "get ""/root/.hcron/*.*""" "exit"
. 2021-01-05 10:47:02.063 Time zone: Current: GMT+0, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 28/03/2021, DST End: 31/10/2021
. 2021-01-05 10:47:02.063 Login time: 05 January 2021 10:47:02
. 2021-01-05 10:47:02.063 --------------------------------------------------------------------------
. 2021-01-05 10:47:02.063 Script: Retrospectively logging previous script records:
> 2021-01-05 10:47:02.063 Script: open sftp://root:***@myserver.com:8022
. 2021-01-05 10:47:02.063 --------------------------------------------------------------------------
. 2021-01-05 10:47:02.063 Session name: root@myserver.com (Ad-Hoc site)
. 2021-01-05 10:47:02.063 Host name: myserver.com (Port: 8022)
. 2021-01-05 10:47:02.063 User name: root (Password: Yes, Key file: No, Passphrase: No)
. 2021-01-05 10:47:02.063 Tunnel: No
. 2021-01-05 10:47:02.063 Transfer Protocol: SFTP
. 2021-01-05 10:47:02.063 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2021-01-05 10:47:02.063 Disable Nagle: No
. 2021-01-05 10:47:02.063 Proxy: None
. 2021-01-05 10:47:02.063 Send buffer: 262144
. 2021-01-05 10:47:02.063 SSH protocol version: 2; Compression: No
. 2021-01-05 10:47:02.063 Bypass authentication: No
. 2021-01-05 10:47:02.063 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2021-01-05 10:47:02.063 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom: 
. 2021-01-05 10:47:02.063 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2021-01-05 10:47:02.063 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2021-01-05 10:47:02.063 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2021-01-05 10:47:02.063 Simple channel: Yes
. 2021-01-05 10:47:02.063 Return code variable: Autodetect; Lookup user groups: Auto
. 2021-01-05 10:47:02.063 Shell: default
. 2021-01-05 10:47:02.063 EOL: LF, UTF: Auto
. 2021-01-05 10:47:02.063 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2021-01-05 10:47:02.063 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2021-01-05 10:47:02.063 SFTP Bugs: Auto,Auto
. 2021-01-05 10:47:02.063 SFTP Server: default
. 2021-01-05 10:47:02.063 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2021-01-05 10:47:02.063 Cache directory changes: Yes, Permanent: Yes
. 2021-01-05 10:47:02.063 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2021-01-05 10:47:02.063 DST mode: Unix
. 2021-01-05 10:47:02.063 --------------------------------------------------------------------------
. 2021-01-05 10:47:02.063 Looking up host "myserver.com" for SSH connection
. 2021-01-05 10:47:02.085 Connecting to 8.8.8.8 port 8022
. 2021-01-05 10:47:02.102 We claim version: SSH-2.0-WinSCP_release_5.17.6
. 2021-01-05 10:47:02.125 Remote version: SSH-2.0-OpenSSH_6.7p1 Debian-5
. 2021-01-05 10:47:02.125 Using SSH protocol version 2
. 2021-01-05 10:47:02.125 Have a known host key of type ssh-ed25519
. 2021-01-05 10:47:02.143 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2021-01-05 10:47:02.229 Server also has ecdsa-sha2-nistp256/ssh-rsa/ssh-dss host keys, but we don't know any of them
. 2021-01-05 10:47:02.229 Host key fingerprint is:
. 2021-01-05 10:47:02.229 ssh-ed25519 255 cd:ff:8a:c9:18:ae:32:42:6b:ff:b1:ea:5d:fc:22:d8 kLbbzVHMJ5P955y9bYQR3p8JrtXuH5r+xbbkl8RYuaA=
. 2021-01-05 10:47:02.229 Host key matches cached key
. 2021-01-05 10:47:02.229 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
. 2021-01-05 10:47:02.229 Initialised HMAC-SHA-256 outbound MAC algorithm
. 2021-01-05 10:47:02.229 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
. 2021-01-05 10:47:02.229 Initialised HMAC-SHA-256 inbound MAC algorithm
! 2021-01-05 10:47:02.243 Using username "root".
. 2021-01-05 10:47:02.260 Server offered these authentication methods: publickey,password
. 2021-01-05 10:47:02.260 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2021-01-05 10:47:02.260 Using stored password.
. 2021-01-05 10:47:02.260 Sent password
. 2021-01-05 10:47:02.285 Access granted
. 2021-01-05 10:47:02.285 Opening main session channel
. 2021-01-05 10:47:02.299 Opened main channel
. 2021-01-05 10:47:02.316 Started a shell/command
. 2021-01-05 10:47:02.316 --------------------------------------------------------------------------
. 2021-01-05 10:47:02.316 Using SFTP protocol.
. 2021-01-05 10:47:02.316 Doing startup conversation with host.
> 2021-01-05 10:47:02.316 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2021-01-05 10:47:02.336 Type: SSH_FXP_VERSION, Size: 150, Number: -1
. 2021-01-05 10:47:02.336 SFTP version 3 negotiated.
. 2021-01-05 10:47:02.336 Unknown server extension posix-rename@openssh.com="1"
. 2021-01-05 10:47:02.336 Supports statvfs@openssh.com extension version "2"
. 2021-01-05 10:47:02.336 Unknown server extension fstatvfs@openssh.com="2"
. 2021-01-05 10:47:02.336 Supports hardlink@openssh.com extension version "1"
. 2021-01-05 10:47:02.336 Unknown server extension fsync@openssh.com="1"
. 2021-01-05 10:47:02.336 We believe the server has signed timestamps bug
. 2021-01-05 10:47:02.336 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
. 2021-01-05 10:47:02.336 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2021-01-05 10:47:02.336 Getting current directory name.
. 2021-01-05 10:47:02.336 Getting real path for '.'
> 2021-01-05 10:47:02.336 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2021-01-05 10:47:02.351 Type: SSH_FXP_NAME, Size: 31, Number: 16
. 2021-01-05 10:47:02.351 Real path is '/root'
. 2021-01-05 10:47:02.351 Startup conversation with host finished.
< 2021-01-05 10:47:02.351 Script: Active session: [1] root@myserver.com
> 2021-01-05 10:47:02.355 Script: get "/root/.hcron/events/*.*"
. 2021-01-05 10:47:02.355 Listing directory "/root/.hcron/events".
> 2021-01-05 10:47:02.355 Type: SSH_FXP_OPENDIR, Size: 63, Number: 267
< 2021-01-05 10:47:02.381 Type: SSH_FXP_STATUS, Size: 29, Number: 267
< 2021-01-05 10:47:02.381 Status code: 2, Message: 267, Server: No such file, Language:  
. 2021-01-05 10:47:02.381 Asking user:
. 2021-01-05 10:47:02.381 Error listing directory '/root/.hcron/events'. ("No such file or directory.
. 2021-01-05 10:47:02.381 Error code: 2
. 2021-01-05 10:47:02.381 Error message from server: No such file")
< 2021-01-05 10:47:02.381 Script: Error listing directory '/root/.hcron/events'.
< 2021-01-05 10:47:02.381 Script: No such file or directory.
< 2021-01-05 10:47:02.381 Error code: 2
< 2021-01-05 10:47:02.381 Error message from server: No such file
. 2021-01-05 10:47:02.384 Script: Failed
. 2021-01-05 10:47:02.384 Script: Exit code: 1
. 2021-01-05 10:47:02.384 Closing connection.
. 2021-01-05 10:47:02.384 Sending special code: 1
. 2021-01-05 10:47:02.398 Session sent command exit status 0
. 2021-01-05 10:47:02.398 Main session channel closed
. 2021-01-05 10:47:02.398 All channels closed

Reply with quote

omega1
Joined:
Posts:
6

Hi Martin,

Yes, sorry, forgot the loglevel2 part.

Here is output from Winscp:

. 2021-01-05 12:41:52.764 --------------------------------------------------------------------------
. 2021-01-05 12:41:52.764 WinSCP Version 5.17.6 (Build 10516) (OS 10.0.19041 - Windows 10 Enterprise)
. 2021-01-05 12:41:52.764 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2021-01-05 12:41:52.764 Log level: Debug 2
. 2021-01-05 12:41:52.764 Local account: NEWMONITOR\User
. 2021-01-05 12:41:52.764 Working directory: C:\scripts
. 2021-01-05 12:41:52.764 Process ID: 9120
. 2021-01-05 12:41:52.768 Command-line: "c:\Program Files (x86)\WinSCP\WinSCP.exe" /console=5.17.6 /consoleinstance=_9596_169 "/log=c:\scripts\winscp.log" "/loglevel=2" "/command" "open sftp://root:***@myserver.com:8022" "get ""/root/.hcron/events/*.*""" "exit"
. 2021-01-05 12:41:52.768 Switch:    /console=5.17.6
. 2021-01-05 12:41:52.768 Switch:    /consoleinstance=_9596_169
. 2021-01-05 12:41:52.768 Switch:    /log=c:\scripts\winscp.log
. 2021-01-05 12:41:52.768 Switch:    /loglevel=2
. 2021-01-05 12:41:52.768 Switch:    /command
. 2021-01-05 12:41:52.768 Parameter: open sftp://root:password@myserver.com:8022
. 2021-01-05 12:41:52.768 Parameter: get "/root/.hcron/events/*.*"
. 2021-01-05 12:41:52.768 Parameter: exit
. 2021-01-05 12:41:52.768 Time zone: Current: GMT+0, Standard: GMT+0 (GMT Standard Time), DST: GMT+1 (GMT Daylight Time), DST Start: 28/03/2021, DST End: 31/10/2021
. 2021-01-05 12:41:52.768 Login time: 05 January 2021 12:41:52
. 2021-01-05 12:41:52.768 --------------------------------------------------------------------------
. 2021-01-05 12:41:52.768 Script: Retrospectively logging previous script records:
> 2021-01-05 12:41:52.768 Script: open sftp://root:***@myserver.com:8022
> 2021-01-05 12:41:52.768 Script: Parameter: sftp://root:***@myserver.com:8022
. 2021-01-05 12:41:52.768 --------------------------------------------------------------------------
. 2021-01-05 12:41:52.768 Session name: root@myserver.com (Ad-Hoc site)
. 2021-01-05 12:41:52.768 Host name: myserver.com (Port: 8022)
. 2021-01-05 12:41:52.768 User name: root (Password: Yes, Key file: No, Passphrase: No)
. 2021-01-05 12:41:52.768 Tunnel: No
. 2021-01-05 12:41:52.768 Transfer Protocol: SFTP
. 2021-01-05 12:41:52.768 Ping type: Off, Ping interval: 30 sec; Timeout: 15 sec
. 2021-01-05 12:41:52.768 Disable Nagle: No
. 2021-01-05 12:41:52.768 Proxy: None
. 2021-01-05 12:41:52.768 Send buffer: 262144
. 2021-01-05 12:41:52.768 SSH protocol version: 2; Compression: No
. 2021-01-05 12:41:52.768 Bypass authentication: No
. 2021-01-05 12:41:52.768 Try agent: Yes; Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: Yes
. 2021-01-05 12:41:52.768 GSSAPI: Forwarding: No; Libs: gssapi32,sspi,custom; Custom: 
. 2021-01-05 12:41:52.768 Ciphers: aes,chacha20,blowfish,3des,WARN,arcfour,des; Ssh2DES: No
. 2021-01-05 12:41:52.768 KEX: ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1
. 2021-01-05 12:41:52.768 SSH Bugs: Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto
. 2021-01-05 12:41:52.768 Simple channel: Yes
. 2021-01-05 12:41:52.768 Return code variable: Autodetect; Lookup user groups: Auto
. 2021-01-05 12:41:52.768 Shell: default
. 2021-01-05 12:41:52.768 EOL: LF, UTF: Auto
. 2021-01-05 12:41:52.768 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes; Follow directory symlinks: No
. 2021-01-05 12:41:52.768 LS: ls -la, Ign LS warn: Yes, Scp1 Comp: No; Exit code 1 is error: No
. 2021-01-05 12:41:52.768 SFTP Bugs: Auto,Auto
. 2021-01-05 12:41:52.768 SFTP Server: default
. 2021-01-05 12:41:52.768 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2021-01-05 12:41:52.768 Cache directory changes: Yes, Permanent: Yes
. 2021-01-05 12:41:52.768 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2021-01-05 12:41:52.768 DST mode: Unix
. 2021-01-05 12:41:52.768 --------------------------------------------------------------------------
. 2021-01-05 12:41:52.768 Looking up host "myserver.com" for SSH connection
. 2021-01-05 12:41:52.796 Connecting to 8.8.8.8 port 8022
. 2021-01-05 12:41:52.813 Selecting events 63 for socket 1260
. 2021-01-05 12:41:52.813 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:52.813 Looking for incoming data
. 2021-01-05 12:41:52.813 Looking for network events
. 2021-01-05 12:41:52.813 We claim version: SSH-2.0-WinSCP_release_5.17.6
. 2021-01-05 12:41:52.813 Detected network event
. 2021-01-05 12:41:52.813 Enumerating network events for socket 1260
. 2021-01-05 12:41:52.813 Enumerated 18 network events making 18 cumulative events for socket 1260
. 2021-01-05 12:41:52.813 Handling network write event on socket 1260 with error 0
. 2021-01-05 12:41:52.813 Handling network connect event on socket 1260 with error 0
. 2021-01-05 12:41:52.813 Looking for network events
. 2021-01-05 12:41:53.077 Detected network event
. 2021-01-05 12:41:53.077 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.077 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.077 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.077 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.077 Looking for incoming data
. 2021-01-05 12:41:53.077 Looking for network events
. 2021-01-05 12:41:53.077 Remote version: SSH-2.0-OpenSSH_6.7p1 Debian-5
. 2021-01-05 12:41:53.077 Using SSH protocol version 2
. 2021-01-05 12:41:53.078 Have a known host key of type ssh-ed25519
. 2021-01-05 12:41:53.079 Doing ECDH key exchange with curve Curve25519 and hash SHA-256
. 2021-01-05 12:41:53.164 Detected network event
. 2021-01-05 12:41:53.164 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.164 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.164 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.164 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.164 Looking for incoming data
. 2021-01-05 12:41:53.164 Looking for network events
. 2021-01-05 12:41:53.220 Server also has ecdsa-sha2-nistp256/ssh-rsa/ssh-dss host keys, but we don't know any of them
. 2021-01-05 12:41:53.221 Host key fingerprint is:
. 2021-01-05 12:41:53.221 ssh-ed25519 255 cd:ea:8a:c9:18:ae:32:42:6b:e6:b1:ea:5d:fc:99:d8 kLbbzVHMJ5P924y9bYQR3p8JrtXuH5r+xbbkl8RYuaA=
. 2021-01-05 12:41:53.221 Verifying host key ssh-ed25519 0x73c19c6da85c2489 b3aa4caa438fd14b 421b916f225c8574 434dc31b18e77cb8 ,0x68ea993fad54e490 fb8a9367c5b8e9d2 a77a86e2f94c4df7 33259f5c702dc84f  with fingerprints ssh-ed25519 255 cd:ea:8a:c9:18:ae:32:42:6b:e6:b1:ea:5d:fc:22:d8 kLbbzVHMJ5P924y9bYQR3p8JrtXuH5r+xbbkl8RYuaA=
. 2021-01-05 12:41:53.221 Host key matches cached key
. 2021-01-05 12:41:53.221 Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
. 2021-01-05 12:41:53.221 Initialised HMAC-SHA-256 outbound MAC algorithm
. 2021-01-05 12:41:53.221 Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
. 2021-01-05 12:41:53.221 Initialised HMAC-SHA-256 inbound MAC algorithm
. 2021-01-05 12:41:53.235 Detected network event
. 2021-01-05 12:41:53.235 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.235 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.235 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.235 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.235 Looking for incoming data
. 2021-01-05 12:41:53.235 Looking for network events
! 2021-01-05 12:41:53.235 Using username "root".
. 2021-01-05 12:41:53.249 Detected network event
. 2021-01-05 12:41:53.249 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.249 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.249 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.249 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.249 Looking for incoming data
. 2021-01-05 12:41:53.249 Looking for network events
. 2021-01-05 12:41:53.249 Server offered these authentication methods: publickey,password
. 2021-01-05 12:41:53.249 Prompt (password, "SSH password", <no instructions>, "&Password: ")
. 2021-01-05 12:41:53.249 Using stored password.
. 2021-01-05 12:41:53.249 Sent password
. 2021-01-05 12:41:53.306 Detected network event
. 2021-01-05 12:41:53.306 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.306 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.306 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.306 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.306 Looking for incoming data
. 2021-01-05 12:41:53.306 Looking for network events
. 2021-01-05 12:41:53.306 Access granted
. 2021-01-05 12:41:53.306 Opening main session channel
. 2021-01-05 12:41:53.318 Detected network event
. 2021-01-05 12:41:53.318 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.318 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.318 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.318 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.318 Looking for incoming data
. 2021-01-05 12:41:53.318 Looking for network events
. 2021-01-05 12:41:53.321 Opened main channel
. 2021-01-05 12:41:53.335 Detected network event
. 2021-01-05 12:41:53.335 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.335 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.335 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.335 Waiting for the server to continue with the initialization
. 2021-01-05 12:41:53.335 Looking for incoming data
. 2021-01-05 12:41:53.335 Looking for network events
. 2021-01-05 12:41:53.335 Started a shell/command
. 2021-01-05 12:41:53.335 Timeout waiting for network events
. 2021-01-05 12:41:53.335 --------------------------------------------------------------------------
. 2021-01-05 12:41:53.335 Using SFTP protocol.
. 2021-01-05 12:41:53.335 Doing startup conversation with host.
> 2021-01-05 12:41:53.335 Type: SSH_FXP_INIT, Size: 5, Number: -1
> 2021-01-05 12:41:53.335 01,00,00,00,06,
. 2021-01-05 12:41:53.335 Sent 9 bytes
. 2021-01-05 12:41:53.335 There are 0 bytes remaining in the send buffer
. 2021-01-05 12:41:53.335 Looking for network events
. 2021-01-05 12:41:53.335 Timeout waiting for network events
. 2021-01-05 12:41:53.335 Waiting for another 4 bytes
. 2021-01-05 12:41:53.335 Looking for incoming data
. 2021-01-05 12:41:53.335 Looking for network events
. 2021-01-05 12:41:53.349 Detected network event
. 2021-01-05 12:41:53.349 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.349 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.349 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.349 Waiting for another 4 bytes
. 2021-01-05 12:41:53.349 Looking for incoming data
. 2021-01-05 12:41:53.349 Looking for network events
. 2021-01-05 12:41:53.349 Received 154 bytes
. 2021-01-05 12:41:53.349 Timeout waiting for network events
. 2021-01-05 12:41:53.349 Read 4 bytes (150 pending)
. 2021-01-05 12:41:53.349 Read 150 bytes (0 pending)
< 2021-01-05 12:41:53.349 Type: SSH_FXP_VERSION, Size: 150, Number: -1
< 2021-01-05 12:41:53.349 02,00,00,00,03,00,00,00,18,70,6F,73,69,78,2D,72,99,6E,61,6D,65,40,6F,70,65,
< 2021-01-05 12:41:53.349 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,
< 2021-01-05 12:41:53.349 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,
< 2021-01-05 12:41:53.349 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,
< 2021-01-05 12:41:53.352 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,
< 2021-01-05 12:41:53.352 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,
. 2021-01-05 12:41:53.352 SFTP version 3 negotiated.
. 2021-01-05 12:41:53.352 Unknown server extension posix-rename@openssh.com="1"
. 2021-01-05 12:41:53.352 Supports statvfs@openssh.com extension version "2"
. 2021-01-05 12:41:53.352 Unknown server extension fstatvfs@openssh.com="2"
. 2021-01-05 12:41:53.352 Supports hardlink@openssh.com extension version "1"
. 2021-01-05 12:41:53.352 Unknown server extension fsync@openssh.com="1"
. 2021-01-05 12:41:53.352 We believe the server has signed timestamps bug
. 2021-01-05 12:41:53.352 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
. 2021-01-05 12:41:53.352 Limiting packet size to OpenSSH sftp-server limit of 262148 bytes
. 2021-01-05 12:41:53.352 Getting current directory name.
. 2021-01-05 12:41:53.352 Getting real path for '.'
> 2021-01-05 12:41:53.352 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
> 2021-01-05 12:41:53.352 10,00,00,00,10,00,00,00,01,2E,
. 2021-01-05 12:41:53.352 Sent 14 bytes
. 2021-01-05 12:41:53.352 There are 0 bytes remaining in the send buffer
. 2021-01-05 12:41:53.352 Looking for network events
. 2021-01-05 12:41:53.352 Timeout waiting for network events
. 2021-01-05 12:41:53.352 Waiting for another 4 bytes
. 2021-01-05 12:41:53.352 Looking for incoming data
. 2021-01-05 12:41:53.352 Looking for network events
. 2021-01-05 12:41:53.367 Detected network event
. 2021-01-05 12:41:53.367 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.367 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.367 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.367 Waiting for another 4 bytes
. 2021-01-05 12:41:53.367 Looking for incoming data
. 2021-01-05 12:41:53.367 Looking for network events
. 2021-01-05 12:41:53.367 Received 35 bytes
. 2021-01-05 12:41:53.367 Timeout waiting for network events
. 2021-01-05 12:41:53.367 Read 4 bytes (31 pending)
. 2021-01-05 12:41:53.367 Read 31 bytes (0 pending)
< 2021-01-05 12:41:53.367 Type: SSH_FXP_NAME, Size: 31, Number: 16
< 2021-01-05 12:41:53.367 68,00,00,00,10,00,00,00,01,00,00,00,05,2F,72,99,6F,74,00,00,00,05,2F,72,6F,
< 2021-01-05 12:41:53.367 6F,74,00,00,00,00,
. 2021-01-05 12:41:53.367 Real path is '/root'
. 2021-01-05 12:41:53.367 Startup conversation with host finished.
< 2021-01-05 12:41:53.367 Script: Active session: [1] root@myserver.com
. 2021-01-05 12:41:53.367 Session upkeep
. 2021-01-05 12:41:53.367 Looking for network events
. 2021-01-05 12:41:53.367 Timeout waiting for network events
> 2021-01-05 12:41:53.367 Script: get "/root/.hcron/events/*.*"
> 2021-01-05 12:41:53.367 Script: Parameter: /root/.hcron/events/*.*
. 2021-01-05 12:41:53.367 Listing directory "/root/.hcron/events".
> 2021-01-05 12:41:53.367 Type: SSH_FXP_OPENDIR, Size: 63, Number: 267
> 2021-01-05 12:41:53.367 0B,00,00,01,0B,00,00,00,36,2F,72,6F,6F,74,2F,99,68,63,72,6F,6E,2F,74,77,69,
> 2021-01-05 12:41:53.367 74,74,65,72,31,2E,65,61,73,79,77,65,62,63,6F,6D,6D,75,6E,69,63,61,74,69,6F,
> 2021-01-05 12:41:53.367 6E,73,2E,63,6F,6D,2F,65,76,65,6E,74,73,
. 2021-01-05 12:41:53.367 Sent 67 bytes
. 2021-01-05 12:41:53.367 There are 0 bytes remaining in the send buffer
. 2021-01-05 12:41:53.367 Looking for network events
. 2021-01-05 12:41:53.367 Timeout waiting for network events
. 2021-01-05 12:41:53.367 Waiting for another 4 bytes
. 2021-01-05 12:41:53.367 Looking for incoming data
. 2021-01-05 12:41:53.367 Looking for network events
. 2021-01-05 12:41:53.384 Detected network event
. 2021-01-05 12:41:53.384 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.384 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.384 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.384 Waiting for another 4 bytes
. 2021-01-05 12:41:53.384 Looking for incoming data
. 2021-01-05 12:41:53.384 Looking for network events
. 2021-01-05 12:41:53.384 Received 33 bytes
. 2021-01-05 12:41:53.384 Timeout waiting for network events
. 2021-01-05 12:41:53.384 Read 4 bytes (29 pending)
. 2021-01-05 12:41:53.384 Read 29 bytes (0 pending)
< 2021-01-05 12:41:53.384 Type: SSH_FXP_STATUS, Size: 29, Number: 267
< 2021-01-05 12:41:53.384 65,00,00,01,0B,00,00,00,02,00,00,00,0C,4E,99,20,73,75,63,68,20,66,69,6C,65,
< 2021-01-05 12:41:53.384 00,00,00,00,
< 2021-01-05 12:41:53.384 Status code: 2, Message: 267, Server: No such file, Language:  
. 2021-01-05 12:41:53.384 Asking user:
. 2021-01-05 12:41:53.384 Error listing directory '/root/.hcron/events'. ("No such file or directory.
. 2021-01-05 12:41:53.384 Error code: 2
. 2021-01-05 12:41:53.384 Error message from server: No such file")
< 2021-01-05 12:41:53.384 Script: Error listing directory '/root/.hcron/events'.
< 2021-01-05 12:41:53.384 Script: No such file or directory.
< 2021-01-05 12:41:53.384 Error code: 2
< 2021-01-05 12:41:53.384 Error message from server: No such file
. 2021-01-05 12:41:53.384 Script: Failed
. 2021-01-05 12:41:53.384 Session upkeep
. 2021-01-05 12:41:53.384 Looking for network events
. 2021-01-05 12:41:53.384 Timeout waiting for network events
. 2021-01-05 12:41:53.384 Script: Exit code: 1
. 2021-01-05 12:41:53.384 Script: Max roundtrip: 0
. 2021-01-05 12:41:53.388 Closing connection.
. 2021-01-05 12:41:53.388 Sending special code: 1
. 2021-01-05 12:41:53.388 Looking for network events
. 2021-01-05 12:41:53.417 Detected network event
. 2021-01-05 12:41:53.417 Enumerating network events for socket 1260
. 2021-01-05 12:41:53.417 Enumerated 1 network events making 1 cumulative events for socket 1260
. 2021-01-05 12:41:53.417 Handling network read event on socket 1260 with error 0
. 2021-01-05 12:41:53.417 Looking for network events
. 2021-01-05 12:41:53.417 Session sent command exit status 0
. 2021-01-05 12:41:53.417 Main session channel closed
. 2021-01-05 12:41:53.417 All channels closed
. 2021-01-05 12:41:53.417 Timeout waiting for network events
. 2021-01-05 12:41:53.417 Selecting events 0 for socket 1260


Here is output from Filezilla:

2021-01-05 12:49:18 62845 1 Status: Connecting to myserver.com:8022...
2021-01-05 12:49:18 62845 1 Trace: CControlSocket::SendNextCommand()
2021-01-05 12:49:18 62845 1 Trace: CSftpConnectOpData::Send() in state 0
2021-01-05 12:49:18 62845 1 Trace: Going to execute /private/var/folders/y2/v50drw8j45x1lycr3l3bkmr00000gn/T/AppTranslocation/75CD8CAD-993B-4F6D-BA8F-131E896A8982/d/FileZilla.app/Contents/MacOS//fzsftp
2021-01-05 12:49:18 62845 1 Response: fzSftp started, protocol_version=9
2021-01-05 12:49:18 62845 1 Trace: CSftpConnectOpData::ParseResponse() in state 0
2021-01-05 12:49:18 62845 1 Trace: CControlSocket::SendNextCommand()
2021-01-05 12:49:18 62845 1 Trace: CSftpConnectOpData::Send() in state 3
2021-01-05 12:49:18 62845 1 Command: open "root@myserver.com" 8022
2021-01-05 12:49:18 62845 1 Trace: Looking up host "myserver.com" for SSH connection
2021-01-05 12:49:18 62845 1 Trace: Connecting to 8.8.8.8 port 8022
2021-01-05 12:49:18 62845 1 Trace: We claim version: SSH-2.0-PuTTYFileZilla_3.46.3
2021-01-05 12:49:18 62845 1 Trace: Remote version: SSH-2.0-OpenSSH_6.7p1 Debian-5
2021-01-05 12:49:18 62845 1 Trace: Using SSH protocol version 2
2021-01-05 12:49:19 62845 1 Trace: Doing ECDH key exchange with curve Curve25519 and hash SHA-256 (unaccelerated)
2021-01-05 12:49:19 62845 1 Trace: Server also has ecdsa-sha2-nistp256/ssh-dss/ssh-rsa host keys, but we don't know any of them
2021-01-05 12:49:19 62845 1 Trace: Host key fingerprint is:
2021-01-05 12:49:19 62845 1 Trace: ssh-ed25519 255 cd:ea:8a:c9:18:ae:32:42:6b:e6:99:ea:5d:fc:22:d8 kLbbzVHMJ5P924y9bYQR3p8JrtXuH5r+xbbkl8RYuaA=
2021-01-05 12:49:19 62845 1 Trace: Initialised AES-256 SDCTR (AES-NI accelerated) outbound encryption
2021-01-05 12:49:19 62845 1 Trace: Initialised HMAC-SHA-256 (unaccelerated) outbound MAC algorithm
2021-01-05 12:49:19 62845 1 Trace: Initialised AES-256 SDCTR (AES-NI accelerated) inbound encryption
2021-01-05 12:49:19 62845 1 Trace: Initialised HMAC-SHA-256 (unaccelerated) inbound MAC algorithm
2021-01-05 12:49:19 62845 1 Trace: Pageant is running. Requesting keys.
2021-01-05 12:49:19 62845 1 Trace: Pageant has 0 SSH-2 keys
2021-01-05 12:49:19 62845 1 Command: Pass: *********
2021-01-05 12:49:19 62845 1 Trace: Sent password
2021-01-05 12:49:19 62845 1 Trace: Access granted
2021-01-05 12:49:19 62845 1 Trace: Opening main session channel
2021-01-05 12:49:19 62845 1 Trace: Opened main channel
2021-01-05 12:49:19 62845 1 Trace: Started a shell/command
2021-01-05 12:49:19 62845 1 Status: Connected to myserver.com
2021-01-05 12:49:19 62845 1 Trace: Remote working directory is /root
2021-01-05 12:49:19 62845 1 Trace: CSftpConnectOpData::ParseResponse() in state 3
2021-01-05 12:49:19 62845 1 Trace: CControlSocket::ResetOperation(0)
2021-01-05 12:49:19 62845 1 Trace: CSftpConnectOpData::Reset(0) in state 3
2021-01-05 12:49:19 62845 1 Status: Retrieving directory listing of "/root/.hcron/events"...
2021-01-05 12:49:19 62845 1 Trace: CControlSocket::SendNextCommand()
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::Send() in state 0
2021-01-05 12:49:19 62845 1 Trace: CSftpChangeDirOpData::Send() in state 0
2021-01-05 12:49:19 62845 1 Trace: CSftpChangeDirOpData::Send() in state 2
2021-01-05 12:49:19 62845 1 Command: cd "/root/.hcron/events"
2021-01-05 12:49:19 62845 1 Response: New directory is: "/root/.hcron/events"
2021-01-05 12:49:19 62845 1 Trace: CSftpChangeDirOpData::ParseResponse() in state 2
2021-01-05 12:49:19 62845 1 Trace: CControlSocket::ResetOperation(0)
2021-01-05 12:49:19 62845 1 Trace: CSftpChangeDirOpData::Reset(0) in state 2
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::SubcommandResult(0) in state 1
2021-01-05 12:49:19 62845 1 Trace: CControlSocket::SendNextCommand()
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::Send() in state 2
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::Send() in state 3
2021-01-05 12:49:19 62845 1 Command: ls
2021-01-05 12:49:19 62845 1 Status: Listing directory /root/.hcron/events
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::ParseResponse() in state 3
2021-01-05 12:49:19 62845 1 Trace: CControlSocket::ResetOperation(0)
2021-01-05 12:49:19 62845 1 Trace: CSftpListOpData::Reset(0) in state 3
2021-01-05 12:49:19 62845 1 Status: Directory listing of "/root/.hcron/events" successful

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Didn't you edit the log file somehow? The SSH_FXP_OPENDIR dump shows that you are listing folder /root/hcron/<hostname>/events and not /root/.hcron/events.

Reply with quote

Advertisement

You can post new topics in this forum