我正在Netsuite中创建SFTP连接。它显示“建立SFTP连接时超出超时”。我无法设置超时时间,因为最大超时时间为20秒。
任何人都可以帮助解决该超时问题吗?
预先感谢
function sftpConnectionDetails(requestObj){
var reqstObj=requestObj;
var myHostKey = 'xxx';
var passwordGUID = reqstObj.parameters.custpage_username;
var connection = sftp.createConnection({
username: 'username: ',
passwordGuid: passwordGUID,
url: 'yyy.com',
hostKey: myHostKey
});
var csvFile = file.create({
name:'file.csv' ,
contents: 'csvString',
fileType: file.Type.CSV
});
var uploadedStatus = connection.upload({
directory: '/myhome',
filename: 'file.csv',
file: csvFile,
replaceExisting: false
});
}