Thank you, Martin.
- vlad.bel
"C:\Program Files\WinSCP\WinSCP.com" /command "open sftp://username:password@mysite.com:3879/ -hostkey=""ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx""" "put C:\Cache\Qty-UL.php /public_html/vb-scripts/" "exit"
Normally, in GUI, connection works both in FTP and SFTP sessions. When I use same session name in command line, I see exactly same log as in this topic above.
Is there the way to specify port # in command line?
If you want to use the FTP protocol, useftp://
protocol prefix in the session URL:
https://winscp.net/eng/docs/session_url
You can specify the port in the URL explicitly too. But it's not necessary, if you use the standard port for the protocol (i.e. 21 for FTP).
Normally, in GUI, connection works both in FTP and SFTP sessions. When I use same session name in command line, I see exactly same log as in this topic above.
Is there the way to specify port # in command line?
ftp://
protocol prefix in the session URL: