File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes FTP issue (using Jcrafts com.jcraft.jsch) login error :1,com.jcraft.jsch.JSchException: 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 "FTP issue (using Jcrafts com.jcraft.jsch) login error :1,com.jcraft.jsch.JSchException:" Watch "FTP issue (using Jcrafts com.jcraft.jsch) login error :1,com.jcraft.jsch.JSchException:" New topic
Author

FTP issue (using Jcrafts com.jcraft.jsch) login error :1,com.jcraft.jsch.JSchException:

kumar kb
Greenhorn

Joined: Dec 05, 2011
Posts: 2

hi,

i was trying to connect unix server using the jsch-0.1.45.jar
API.
Below are the lines of code to connect to thse server

-------------------------------------------------------------
session = jsch.getSession(username, server, port);

UserInfo ui = new MyUserInfo(password);

session.setUserInfo(ui);
int timeout = 5000;
session.connect(timeout);
Channel channel = session.openChannel("sftp");
channel.connect();
channelSftp = (ChannelSftp) channel;

} catch (JSchException e) {
System.out.println("login error :1," + e); //warn
throw new IOException(e.getMessage());
}
-------------------------------------------------------------

I am getting the below error
-----------------------------------------------------------
Login error :1,com.jcraft.jsch.JSchException: java.io.IOException: Pipe closed
Logout...
Logout...OK
java.io.IOException: java.io.IOException: Pipe closed
-----------------------------------------------------------
Anybody can you please suggest.

regards
kbkumar
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: FTP issue (using Jcrafts com.jcraft.jsch) login error :1,com.jcraft.jsch.JSchException:
 
Similar Threads
File Upload Error - Using JSCH/SFTP
Problem with moving a file from one Directory to other Directory using FTPClient rename Method
any java method which can work like grep command in unix
com.jcraft.jsch.JSchException: connection is closed by foreign host
Apache Common FTPClient