1,663 questions
0
votes
0
answers
47
views
JSCH SFTP upload error: throwStatusError - Status code 4, but no message shown
I'm trying to upload a file to an SFTP server using the JSCH library in Java, but I'm getting a generic error with status code 4, and no descriptive message.
com.jcraft.jsch.SftpException: 4:
at com....
0
votes
0
answers
36
views
Connecting to Vertica DB via SSH Tunnel with PEM file using Java automation
I'm trying to connect to a remote Vertica DB using Java and connecting to it involves an SSH tunnel with the addition of a PEM file as a Public Key.
However, after creating a port forwarding session ...
0
votes
0
answers
33
views
Getting com.jcraft.jsch.JSchException: Auth fail error after USERAUTH error has been fixed and session has already connected [duplicate]
This is the code:
private static final String JUMPBOX_HOST = "XX.XX.XX.XX";
private static final String JUMPBOX_USER = "username";
private static final String ...
0
votes
0
answers
73
views
JSchException: Authentication failure [duplicate]
I am getting an error when trying to establish connection to a remote server using jcraft.
com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:519)
...
3
votes
1
answer
114
views
JSCH 0.2.24 with Proguard: Algorithm ECDH not available
updating JSCH form version 0.1.55. to 0.2.24 and running proguard returns an error:
com.jcraft.jsch.JSchException: java.security.NoSuchAlgorithmException: Algorithm ECDH not available
at com....
0
votes
0
answers
41
views
Random jsch errors when using multiple OutputStream objects created from single ChannelSftp object
In my application I have to write multiple files to remote server simultaneously. "simultaneously" does not mean "concurrently", I just need to have a few open OutputStreams.
I ...
0
votes
1
answer
108
views
Unable to SSH a remote server "SSH connection failed:Auth fail" [duplicate]
I am encountering an authentication failure when trying to SSH to a remote server using Java code, despite being able to authenticate successfully via command line. Here is my code :
private boolean ...
0
votes
0
answers
71
views
JSch getSession(username, hostname) use [hostname].local instead of ip address
I am connecting JSch with Raspberry Pi. In getSession(username, hostname);, the hostname is ip address. However, the ip of Pi changes everytime reboot. It is possible to use [hostname].local or [...
0
votes
0
answers
68
views
How to add host key (Ed25519) and the cipher (ChaCha20; SSH-2 only) settings of putty to Java-Selenium code using JSCH maven dependency?
The Linux server has the SSH setting which are the host key (Ed25519) and the cipher (ChaCha20; SSH-2 only) as highlighted in below snapshot. Manually we are using putty to connect the server. In ...
-1
votes
1
answer
181
views
JSch session.connect error : Algorithm negotiation fail
Trying to connect to SFTP server via Jsch , I am using com.github.mwiede:jsch:0.1.72
Get following error at: session.connect().
I checked another SO(JSchException: Algorithm negotiation fail) but the ...
0
votes
0
answers
128
views
com.jcraft.jsch.JSchException: SSH_MSG_DISCONNECT: 11 Application error en-US
Im using jsc 0.2.17,
private ChannelSftp setupJsch() throws JSchException {
Properties config = new Properties();
config.put("StrictHostKeyChecking", "no");
...
2
votes
0
answers
47
views
How to connect to password authorized SFTP server using java code. JSCH lib throws "com.jcraft.jsch.JSchException: Algorithm negotiation fail" error [duplicate]
I need write Java code to connect to sftpuser/sftp_password authorized SFTP server . JSCH lib throws com.jcraft.jsch.JSchException: Algorithm negotiation fail" error. I know the jsch 0.1.55 ...
-2
votes
1
answer
259
views
SFTP connectivity via Jsch fails with "Auth fail for methods 'publickey'"
I am able to run the java program to connect to SFTP from my local application.
this.host = host;
this.port = port;
this.username = username;
this.jsch = new JSch();
...
-2
votes
1
answer
55
views
Remote process stops as soon as my Java app exits [closed]
I'm running a remote process (that runs on remote Debian machine within its Terminal via "./st.cmd" command below) through my Java app which I want to keep running throughout the lifespan of ...
0
votes
0
answers
71
views
Improving performance of remote command execution on Exchange Server using SSH
My basic requirement is to integrate/ connect with on-premise exchange server and perform
CRUD operations. I want to use Java to implement this client. This Java client will be running on a Unix ...