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: 6471

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: 6471

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

Post 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_SEC*);
Scheduler.messageBox(list);

Yes,they are in root directory.

Still the variable list is showing nothing.
Fri Apr 01, 2016 11:13 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6471

Post Reply with quote
Have you tried"*" mask?

Same question as before, what does the job output show in trace mode?
Fri Apr 01, 2016 1:45 pm View user's profile Send private message
Laks



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

Post Reply with quote
I have used the mask as *. But no luck..

Is ther is any saple script file for this.



The log is showing with messgae as file or directory not found.
Thanks
Fri Apr 01, 2016 7:08 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6471

Post Reply with quote
Your script is fine. Please post the complete output. You can mask the actual server name.
Sat Apr 02, 2016 8:29 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.