Author |
Message |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
SFTP will not work |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
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 |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
I got it working.
Thank you for your help.
|
|
Wed Mar 09, 2016 3:06 pm |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
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 |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
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 |
|
 |
rhubman16
Joined: 08 Mar 2016 Posts: 41
|
|
|
|
Sorry memilee, not sure what you mean?
|
|
Tue Mar 28, 2017 9:06 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
 |
 |
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 |
|
 |
|