Forums Register Login

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

+Pie Number of slices to send: Send

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
Our first order of business must be this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3756 times.
Similar Threads
any java method which can work like grep command in unix
com.jcraft.jsch.JSchException: connection is closed by foreign host
Problem with moving a file from one Directory to other Directory using FTPClient rename Method
File Upload Error - Using JSCH/SFTP
Apache Common FTPClient
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 03:57:47.