I am trying to initiate an SFTP session using COZBATCH. I have tried, unsuccessfully, to specify a port number for the SFTP transfer. I am sure it is easy, but the proper statement, or place to use the statement escapes me.
Any help would be appreciated.
Thanks,
Neal
SFTP Port number
Re: SFTP Port number
You can specify the port via the -o option:
If you are using our sample scripts, add this to the ssh-opts environment variable:
Code: Select all
sftp -oPort=2222 user@host
Code: Select all
ssh_opts="$ssh_opts -oPort=2222"