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