Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

C Holt

Port issues in Script

I am trying to script a SFTP upload to port 10022. Here is the code: open sftp://username:[email protected]:port=10022/ -hostkey="ssh-rsa 2048 XX". When I call the script, the session times out; Searching for Host; Network error: Connection to "1.1.1.1" timed out. When I look at the log, the line Connecting to 1.1.1.1 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?