Posted: 2015-02-18 15:11
I am trying to script a SFTP upload to port 10022. Here is the code: open sftp://username:firstname.lastname@example.org:port=10022/ -hostkey="ssh-rsa 2048 XX". When I call the script, the session times out; Searching for Host; Network error: Connection to "188.8.131.52" timed out. When I look at the log, the line Connecting to 184.108.40.206 shows port 22 - the script returns to the default. Running this in the GUI interface works like a champ. I have tried to specify the port in the script - but, it is as if the port gets ignored during the connecting. I am using WinSCP version 5.5.6 (Build 4746). Any advice?
Location: Prague, Czechia
Where did you get this syntax from? (This is real question. I wonder if we need to improve our documentation somehow).
The correct syntax is:
If you have you session working in GUI, you can use Generate URL function:
(in the latest release only)
You can post new topics in this forum
And it's free!