All Questions
1,386 questions
0
votes
0
answers
37
views
While creating maverick-synergy-client, getting an error "Unable to locate a cryptographic provider"
I'm using kotlin 19 and JVM 21.
We recently moved to maverick-synergy-client 3.1.2 (upgraded from 3.0.11 where everything worked well).
This issue occurs without any additional dependencies.
Also ...
0
votes
0
answers
57
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
22
views
How to connect visualVM over ssh to jmx started with `Jcmd ManagementAgent.start`
I try to attach visualVM to a running java process started without JMX flags(I don't have control over the startup script). To-do so, I enabled jmx with jcmd:
~> jcmd 15868 ManagementAgent.start ...
-1
votes
1
answer
153
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
514
views
No more authentication methods available with Apache Mina SSHD
I'm facing an issue while trying to authenticate an SSH session using the Apache Mina SSHD library in Java in a spring boot microservice project. I have a working implementation using JSch that ...
-1
votes
1
answer
98
views
Ansible-generated SSH keys works with Java 17 but not Java 8
I am generating SSH keys using an Ansible script that works fine with Java 17, However it's not working when using Java 8. The issue seems to be related to the encryption algorithm used in the ...
0
votes
1
answer
135
views
Publish private key of testcontainer
I setup some Java integration tests with testcontainers and atomz/sftp docker container for Jsch, both running on the same machine.
I store the generated key pair in the test/resource path of my maven ...
0
votes
0
answers
70
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 ...
0
votes
0
answers
245
views
Apache Mina SSH failing because "No more authentication methods available" for NETCONF application
I'm trying to SSH to a network device but am currently failing the authentication. I'm able to connect via the command ssh -i /home/usr/private_key [email protected] but am having no luck with ...
1
vote
0
answers
65
views
Unable to read command output using JSch [duplicate]
I'm trying to login to remote session using JSch Channel shell and execute simple shell command and trying to read the command output with the following code -
private static Session getSession() {
...
0
votes
1
answer
80
views
How to Resume File Download with ChannelSftp in JSch After a Disconnect
I'm using the JSch library to download a file from an SFTP server using ChannelSftp. The basic download works as expected with the following code:
channelSftp.get(String source, String destination);
...
1
vote
0
answers
42
views
Jenkins pipeline is taking too much time to execute
I have written this jenkins pipeline to ssh to a server and execute docker commands but it is taking too much time to execute. Around 3 hrs and still going.
pipeline {
agent any
tools {
...
0
votes
1
answer
101
views
SSH to a system after jenkins pipeline is executed
I have a jenkins pipeline
pipeline {
agent any
tools{
jdk 'JDK 1.8'
}
stages {
stage('Clean') {
steps {
script {
sh '...
0
votes
1
answer
80
views
How to pass device traffic through ssh server
I am developing an application that want to pass my android device all traffic through ssh. My vps is ready and works very well as i tested it with other applications like SSH Custom. I use jsch for ...
0
votes
1
answer
806
views
Jsch getting disconnected on trying to connect to SFTP server under AWS Transfer Family
I am trying to use Jsch to connect to a SFTP server. My code looks like below
public void putFile(
final SftpConfig sftpConfig, final InputStream inputStream, final String remoteFileName) {
...