aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Getting Auth fail:JschException while connecting to remote system via FTP protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Getting Auth fail:JschException while connecting to remote system via FTP protocol" Watch "Getting Auth fail:JschException while connecting to remote system via FTP protocol" New topic
Author

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

Mani Sing
Greenhorn

Joined: Jun 30, 2010
Posts: 7

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
Ranch Hand

Joined: Aug 27, 2012
Posts: 1067
    
  10

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Getting Auth fail:JschException while connecting to remote system via FTP protocol