Can we specify other than port 22 for SFTP?

Knowledge Drop

Last Tested: Nov 27, 2018

Yes, totally. You can send to that server by specifying the port in the URL.

e.g. sftp://sftp.mysite.com:23/Home/user/desktop/

If you do not specify it, the code defaults to default SSH port 22.