martin wrote:
In GUI you use host name sftp.projectmates.com
, while in script you use projectmates.com
.
Thanks for the update. I tried this prior with the same results. To confirm, I changed the script again and re-ran. I get the same error, "Host does not exist"
Below is a copy of the new script I just ran.
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open sftp://user:password@example.com -hostkey="ssh-rsa 1024 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
# Connect
# Specal charaters are entered as hexdecimal an "@" is entered as %40
# open sftp://SourcePMDynamics:ShvacDynamics%4013@projectmates.com:222
open sftp://SourcePMDynamics:ShvacDynamics%4013@sftp.projectmates.com:222
# open sftp://SourcePMDynamics:ShvacDynamics%4013@[209.235.100.69]:222
# open sftp://SourcePMDynamics:ShvacDynamics%4013%40projectmates.com:222
# Change remote directory
cd /Drop
synchronize remote I:\ProjectMates\Send /Drop
# Disconnect
close
# Exit WinSCP
exit