• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
kumar kb
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic