Is there any way to change the default port number for SFTP from 22 using the IT2be ftp plugin. I have scanned the forum and sample solution with no success.
I fixed my own issue. Below is the code to connect to ssh server with non-default port “9999”
//set the settings needed to log into the server
var settings = plugins.it2be_ftp.createPasswordSettings("host", "user", "password");
// Create a client for the SFTP connection
var client = plugins.it2be_ftp.createSFTPclient(settings);
//setting new port
client.port = 9999;
if(client.connect())
{
//code to process sftp transaction
}