Questions tagged [apache-sshd]

Apache SSHD is a Java library based on Apache MINA to support SSH protocols like SCP or SFTP both client and server side.

45 questions
0
votes
0 answers

How to handle incoming files via Apache Mina SSHD SFTP Client in Java

I want to listen any updates of the file system but on the client-side. I know that I can do the same thing on server-side via SftpEventListener but I'm not sure if there is any option to implement this on the client-side via the aforementioned…
Sandro700
  • 3
  • 1
0
votes
0 answers

SSH client behaviour changed since private key implementation

I've just changed our authentication methods for connecting via SSH as we're moving into production for our app, we're also in the middle of migrating to EC2@AWS. Its been a few days now and I've started to notice a few little changes whcih seem…
0
votes
1 answer

Mimic sftp connection disruption

I am attempting to abruptly disconnect from an SFTP connection in Java without using the sftp.disconnect() method. Using this to build an integration test that checks that clean up happens everytime. See the test below: public void…
Chognificent
  • 393
  • 6
  • 20
0
votes
1 answer

Execute Ctrl+c in apache mina

Do you know how to execute ctl+c command in apache mina ssh client? I'm trying to do this like that session.executeRemoteCommand("\u0003", output, StandardCharsets.UTF_8); but i'm getting error that command cannot be empty. Command is trimmed in…
skoczo
  • 75
  • 1
  • 12
0
votes
1 answer

Apache mina SSHd uses which protocol, ssh1 or ssh2?

We are planning to use Apache Mina SSHd - ssh client in our product. I need to identify if it supports ssh2 protocol. I checked various resources thoroughly but couldn't able to find information around it. Could you please confirm if it supports…
mac
  • 85
  • 1
  • 10
0
votes
1 answer

How can increase the wait timeout for ChannelOutputStream for scpClient of apache SSHD because of SocketTimeoutException?

When using apache SSHD scp client to copy files from local to remote, I get the following error: flush(ChannelOutputStream[ChannelExec[id=0, recipient=0]-ClientSessionImpl[uxxxxxx@Hostname.domain.com/192.163.23.68:45018]] SSH_MSG_CHANNEL_DATA)…
vkp
  • 91
  • 4
  • 17
0
votes
1 answer

How to debug org.apache.sshd.common.scp.ScpException: Received nack: Can not write to error?

I am writing a tool for testing the SSH connection with basic functionality: connect, upload a file, download a file. My SftpTestServer implementation: import org.apache.sshd.client.SshClient import org.apache.sshd.client.scp.ScpClientCreator import…
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82
0
votes
1 answer

How to write file into Apache SSHD server?

EXPLANATION: I am building a test tool for my colleagues. I have several "mock" in-memory back-ends that they will need to use to run integration tests. Therefore, I need to run SSH Server with the ability to upload/download a file. The basic…
Dmytro Chasovskyi
  • 3,209
  • 4
  • 40
  • 82
0
votes
2 answers

Java run SSHD Server Error - No class def found

I am currently running a Java Mina SSHD server. I had my server running fine with sshd-core-0.14.0 but my virus scanner was flagging weak ciphers leaving me no choice but to upgrade to version 2.5.1. I have tried simply replacing the .jar files and…
Peter S
  • 5
  • 5
0
votes
1 answer

How do I make an Apache Mina SSHD client wait for server hostkey verification to complete before attempting anything else?

I'm trying to set up a simple SSH client that verifies server's public key via known hosts file, using Apache Mina SSHD. I've pieced together below pesudo-code that works - well, it would work, if I knew how to make the client wait for server…
predi
  • 5,528
  • 32
  • 60
0
votes
0 answers

How to Implement a Passwordless authentication to Embedded SFTP with Apache MINA SSHD

I'm trying to implement a multi user password-less Embedded SFTP with Apache MINA SSHD with help of this example Here. But When I'm trying to connect to the server, it always demands a password. Password Authentication Problem SshServer sshd =…
user13081694
0
votes
0 answers

Apache MINA SFTP symlinks example

I'm trying to set up an SFTP server using apache sshd with multiple users that each have their own home directory. We wanted grant the access to folders to multiple users using the symbolic links. Can someone please tell me how to do this ? I tried…
ajay_s
  • 1
  • 4
0
votes
0 answers

How to listen to Connection Abort event in Apache MINA SSHD SFTP server?

I have setup SFTPGateway using Apache MINA SSHD version 2.1.0. After User authentication and establishing the connection, I want to capture/listen to the Connection Abort event (by pressing Ctrl+C) while performing PUT operation. Can someone kindly…
StephenL
  • 1
  • 1
-1
votes
1 answer

How to use sshd mina/netty with projectreactor

I want to develop a java reactive application which needs to communicate to some external services via ssh. As reactive framework, I am using spring boot webflux from the project reactor and sshd mina/netty for the ssh client. Basically, the…
vivi
  • 163
  • 13
1 2
3