Using WinSCP version 5.17.6 in an SCP session with a remote device tunneling through a hub server, I am able to copy a file successfully from the remote device from one directory but I receive an "Inappropriate ioctl for device" error when attempting to copy from a different directory. The failed copy attempt creates the file on the Windows 10 machine running WinSCP but it is unreadable. The file I am attempting to copy which failed was a simple text file with 1 line.
I have attached a log file including both the successful and failed copy commands for reference. Any guidance would be greatly appreciated.
Why do you think it's a problem of WinSCP? Can you download the file using command-line
scprunning on the hub?