SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
SFTP will not work

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
SFTP will not work
Author Message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post SFTP will not work Reply with quote
I am trying to use SFTP on an alternate port. I am running an older version of 3.4, however, the documentation states it should work.

Here is what I have in my script:

FTPConfig( "FTP PROTOCOL", "SECURE" )
FTPConfig( "PORT", "122" )
FTPGetFile "sftp.servername.com", "username", "password", "file.csv", "C:\temp"

This is not working. I am able to use filezilla with SFTP and port 122 ok.

Any suggestions?

Thanks
Tue Mar 08, 2016 2:38 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
How is that not working? What kind of error do you get? Why do you think it's a port issue?

Is that an SFTP server or FTPS server? If SFTP, does it support SSH-1 protocol (asking that because the legacy version 3.x only supports that one).
Tue Mar 08, 2016 3:21 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I dont get any error that I see, I just dont get the file. It is SFTP but dont know what support this server has for SSH-1.

I dont think it is a port issue, since I can use another application on that port fine.

Is there somewhere else I can look for an error message?

Thanks
Tue Mar 08, 2016 3:29 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
Please enable the tracing option in the scheduler's settings and restart it. Run the job and review ftp.log file which should contain the trace output. If you don't see anything obvious there, please post ftp.log contents here, replace ftp site address and any other sensitive details with asterisks.
Tue Mar 08, 2016 3:38 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I turned on tracing and ran the job but cannot find the ftp.log file. Where would that be generated at?
Wed Mar 09, 2016 9:01 am View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I got it working.

Thank you for your help.
Wed Mar 09, 2016 3:06 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I am trying to convert this SFTP command to javascript. It will not work in JAL since updating to MP on a new server.

I have the following commands:

FTP.config( "FTP PROTOCOL","SECURE" );
FTP.config( "PORT","122");
FTP.getFile( server, user, pass, file_name, target );

The debug log shows:
FTP server returned error:
FTPSSHUtil - FTPLogin(): ftp://user:*@servername.com:122


I can sftp using that port, username and credentials with filezilla no problem. It seems I have something misconfigured?
Thu Aug 04, 2016 9:00 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
When you said you can connect from FileZilla, did you mean from the same computer?
Also, is that an FTPS or SFTP kind of ftp server?
Fri Aug 05, 2016 6:30 am View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
I am trying filezilla from the same computer, to check the firewall or other issues.

This is a SFTP server.

Thanks
Rob
Mon Aug 08, 2016 1:58 pm View user's profile Send private message
rhubman16



Joined: 08 Mar 2016
Posts: 41

Post Reply with quote
Sorry memilee, not sure what you mean?
Tue Mar 28, 2017 9:06 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6485

Post Reply with quote
rhubman16 wrote:
Sorry memilee, not sure what you mean?


Please ignore that post. I'm going to delete it.
FYI it's a spammer testing automated access and spam message posting to the support board, unfortunately it's something that we have to deal with every day. My apologies for letting this stuff to get through the filters.
Tue Mar 28, 2017 11:04 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.