This is an old revision of the document!

Why I cannot connect/transfer using script, when I can using GUI (or vice versa)?

There are two common reasons for that:

  • You run script from different environment (under different account/service; with different configuration) than the GUI. See another F.A.Q.1
  • You have your session configured differently in script and in the GUI.
    • If you use stored session in the GUI, try using it from the script as well, using open <stored session> command to see, if it makes the script working.
    • Very common difference is not enabling passive mode in the script.

Advertisement

You can also enable session logging both in GUI (on Logging tab of Login dialog) and script (using command-line parameter /log) and compare the logs to find out what is different.

If you decide to seek help, make sure you provide both complete logs when describing your issue

See also more generic article on making WinSCP work in a new environment (operating system, machine, user account, network).

  1. Although it covers different topic, its recommendations are valid for this case as well.Back

Last modified: by martin