All Questions
42 questions
1
vote
2
answers
302
views
java Cannot find any provider supporting Serpent/CTR/NoPadding
sshj logs
Cannot find any provider supporting CAST5/CTR/NoPadding
Cannot find any provider supporting IDEA/CTR/NoPadding
Cannot find any provider supporting Serpent/CBC/NoPadding
Cannot find any ...
2
votes
0
answers
138
views
How to detect SSH timeout with SSHJ SshClient
I'm seeing a situation where an SshClient (fromthe SSHJ library) is connected and then left idle long enough that the SSH connection times out ("timed out waiting for input: auto-logout". I ...
0
votes
1
answer
88
views
sshj: How to pipe input to automated host-side script
So, here's the situation:
I would like to use the sshj library to connect to a host which automatically runs a script on connection. Let's say the script merely logs whatever json formated input it ...
0
votes
0
answers
76
views
Installing Software via SSHJ results in exit code 127
I am trying to write a software to automatically install Linpack on a CentOS Server.
Here's the code I've been working with so far
First, I upload 2 zip files to the SFTP Server that's running on ...
0
votes
1
answer
1k
views
Set allowed transport and MAC ciphers for SSHClient
I'm trying to modify an SSH client using SSHJ so that it only allows certain ciphers. I have properties in a properties file something like this:
sftp.transport.ciphers = aes256-gcm,aes256-ctr,aes256-...
0
votes
0
answers
1k
views
Why is the SSHJ maximum write size 32KB?
I have been using SSHJ to write files to my remote SFTP server. The current set up is I have a Spring Batch ItemWriter that writes chunks of data arbitrarily to a file. Jsch does not support this ...
2
votes
1
answer
2k
views
Meaning of different timeouts in SSHJ
I am trying to use SSHJ to connect to a SFTP from my Java application.
There are a couple of different timeouts that are present but I can't find the difference between them. Even the official docs ...
0
votes
1
answer
1k
views
How should I use sshj to connect with ssh, which makes me very confused
Although there are examples in sshj's github, I don’t understand what I’m doing. I use the following code to try to connect to my host, and that’s it
@Test
public void sshTest() throws ...
0
votes
1
answer
1k
views
Execution of SSH command from Java sends status code 255, but in the terminal if it works [duplicate]
I am trying to develop a small application that allows me to send certain commands by SSH to a remote server. If I try it from the Linux terminal or from the Windows Command Prompt it works without ...
0
votes
3
answers
2k
views
Exception in thread "reader" java.lang.NoClassDefFoundError: org/bouncycastle/crypto/ec/CustomNamedCurves
I've used 'net.schmizz.sshj.SSHClient' package to connect to a server.
Below is my code:
public class ConnectToServer {
String hostName = "10.250.176.6";
int port = 22;
public ...
4
votes
2
answers
15k
views
SSH command execution fails with Exception - "net.schmizz.sshj.connection.ConnectionException: Connection reset Exception is thrown"
When a command is executed via SSH connection, often the command execution fails with Exception - "net.schmizz.sshj.connection.ConnectionException: Connection reset Exception is thrown".
Problem ...
0
votes
1
answer
3k
views
SSHJ is not able to connect remote Linux server throws UserAuthException: Exhausted available authentication methods
I am trying to run the following Java code using sshj :-
public static void main(String[] args) throws IOException {
SSHClient ssh = new SSHClient();
ssh.loadKnownHosts();
ssh.connect("...
6
votes
1
answer
4k
views
how can I modify net.schmizz.sshj logging level?
Can I change the level of logger for the default config or disable it for sshj library my code so far [
Config config = new DefaultConfig();
config.setKeepAliveProvider(KeepAliveProvider.KEEP_ALIVE);...
2
votes
1
answer
1k
views
Java SSHJ - Add to known_hosts file in verifier
I am using SSHJ to execute a remote command, which I can successfully do when the host is in the SSH known_hosts file. However, if the host is not in this file then I would like to the the user the ...
0
votes
1
answer
306
views
how to avoid Illegal key size warning in hierynomus ssh
i have disable the host key checking ssh but it logs illegal key size warning
SSHClient ssh = new SSHClient();
ssh.addHostKeyVerifier(new HostKeyVerifier() {
@Override
public boolean ...