I feel this person is more specifically wondering how to deal with the network connection problem.
Its FTPS. There's many possibilities.
Too short timeout. First thing I would do is max out the timeout that WinSCP allows. The default timeout is too short for many reasons. If the device or the network/internet takes too long, this happens.
The server use of the data connection ports may or may not be specified. If not specified you'd have to allow all ports. Often its a wide amount of ports and not having a port open will cause connection problems.
These are the main two that I can think of in a minute. But, there's other things. Anything that can delay or cause time can cause this.
Its FTPS. There's many possibilities.
Too short timeout. First thing I would do is max out the timeout that WinSCP allows. The default timeout is too short for many reasons. If the device or the network/internet takes too long, this happens.
The server use of the data connection ports may or may not be specified. If not specified you'd have to allow all ports. Often its a wide amount of ports and not having a port open will cause connection problems.
These are the main two that I can think of in a minute. But, there's other things. Anything that can delay or cause time can cause this.