File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

kumar kb

Joined: Dec 05, 2011
Posts: 2


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

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

UserInfo ui = new MyUserInfo(password);

int timeout = 5000;
Channel channel = session.openChannel("sftp");
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: Pipe closed
Logout...OK Pipe closed
Anybody can you please suggest.

I agree. Here's the link:
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