SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SFTP is not working

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
SFTP is not working
Author Message
Laks



Joined: 01 Apr 2016
Posts: 5
Country: United States

Post SFTP is not working Reply with quote
Hi,

We are on current release 5.2.i tried SFTP connection via java script?and I have used port 22 parameter also.still SFTP server is not connecting to get the files?I am not able to see the files in debugging mode.


Any idea.

Thanks
Fri Apr 01, 2016 2:19 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6606

Post Reply with quote
What does the job output show when tracing option is enabled?
Can you see files on FTP server when using FileZilla or other SFTP client tool running on the same computer?
Fri Apr 01, 2016 9:58 am View user's profile Send private message
Laks



Joined: 01 Apr 2016
Posts: 5
Country: United States

Post SFTP not working Reply with quote
I have used the below java script to connect SFTP server and see the files in the variable.

Running in debug mode to track the files.

Yes,I am able to connect SFTP server through winscp client tool

Thanks
Fri Apr 01, 2016 10:16 am View user's profile Send private message
Laks



Joined: 01 Apr 2016
Posts: 5
Country: United States

Post Java script sample Reply with quote
var server = "my server";
var user = "test";
var pass = "1111";

FTP.config("FTP PROTOCOL" , "SFTP");
FTP.config("PORT","22");
var list = FTP.dir(server, user, pass, "/UN*..*);
Scheduler.messageBox(list);
Fri Apr 01, 2016 10:18 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6606

Post Reply with quote
The search mask looks weird to me. Are files in the root dir? If in the default/current dir, then leading / isn't required.

Ps. The easiest way to test working is to use generic file search mask "*"
Fri Apr 01, 2016 10:56 am View user's profile Send private message
Laks



Joined: 01 Apr 2016
Posts: 5
Country: United States