. 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