Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Getting Auth fail:JschException while connecting to remote system via FTP protocol

 
Mani Sing
Greenhorn
Posts: 7
Linux Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting Auth fail:JschException while connecting to a remote server via FTP protocol.

Issue Details
I have configured a batch on my system having WAS environment which gets trigerred via JScheduler once in a day. Whenever batch gets triggered observed Auth fail:JschException occurred while communicating with Tumbleweed server. This batch will connect to server and read a file data.

Strange thing is when i run the batch manually it runs without any error.

Can anyone please help me out what will be the issue here.
 
Richard Tookey
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not aware that Jsch supports FTP; do you mean SFTP (not at all the same)?

It sounds to me like you are trying to use port forwarding to an FTP server but this is pretty much doomed to fail since FTP uses separate socket connections for command and data. SFTP overcomes this by sitting on top of SSH but integrated with it. Why can't you use SFTP?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic