Apache SSHD is a Java library based on Apache MINA to support SSH protocols like SCP or SFTP both client and server side.
Questions tagged [apache-sshd]
45 questions
1
vote
1 answer
How to add public key identity from String?
I have a Spring Boot application with Apache SSHD. The application should use SSH Public Key Authentication. Therefore, the application needs a private key. How to provide this private key?
For security reasons, the private key should not be saved…

dur
- 15,689
- 25
- 79
- 125
1
vote
0 answers
Apache Mina SFTP 2.8.0 Upgrade
I am trying to upgrade 0.14.0 sshd-core and 0.11.0 sshd-sftp to 2.8.0 version.
Unfortunately I found that there are a lot of implementation changes, but I did not find a migration guide before version 2.0.0 (It would be great if someone could…

Nadezhda
- 11
- 2
1
vote
0 answers
Apache mina sshd client: jump server with password authentication
I am trying to implement a ssh client based on MINA sshd communicating with the end server via a ssh jump.
based on the documentation (https://github.com/apache/mina-sshd/blob/master/docs/internals.md#ssh-jumps) and other information found on the…

vivi
- 163
- 13
1
vote
0 answers
Use JGit to fetch git repo with InMemoryRepository and SSH
I'm using JGit in a webservice, that needs to pull/fetch from multiple repositories. Therefore, I'm using the InMemoryRepository of JGit. Additionally, I want to access the repo using SSH (private/public RSA key pair).
As described in…

Raman
- 548
- 1
- 7
- 17
1
vote
1 answer
Apache SSHD client: authenticate with identity file
I am trying to write an SSH client using MINA SSHD, connecting with an identity file generated by openSSH (id_rsa and the corresponding public key id_rsa.pub)
The docs say to write something along these lines:
SshClient client =…

pf76
- 11
- 2
1
vote
1 answer
A simple way to verify the existence of a file on the SFTP server in Java
I am writing an SFTP client using the Apache Mina SSHD library, specifically sshd-sftp 2.3.0. I chose it instead of the SSHJ library, because it is possible to write a String to a remote file directly, and there are also no unnecessary…

Leonis
- 294
- 3
- 10
0
votes
0 answers
how to get command execute result
KeyPairResourceLoader loader = SecurityUtils.getKeyPairResourceParser();
Collection keys = loader.loadKeyPairs(null, Paths.get("~/.ssh/id_rsa"), FilePasswordProvider.EMPTY);
SshClient client =…

xiaoaiaxss
- 1
- 1
0
votes
0 answers
Error uploading files to sshd sftp server, Outbound message too long
The following error is thrown while trying to upload files (>=500KB) from linux sftp client to an sftp server implemented with apache sshd.
Outbound message too long 262197
The same server works file with file zilla and also it is possible to…

Jonny Marotte
- 29
- 5
0
votes
1 answer
Unable to connect to Apache MINA sshd server
I'm trying to setup a sftp server with Apache MINA sshd. But I'm getting subsystem request failed on channel 0 while trying to connect to the server.
sftp -P 22 john@localhost …

Jonny Marotte
- 29
- 5
0
votes
0 answers
Mina SSHD sftp client reports channel is closed exception while downloading a file from remote server
I use sftpclient of mina sshd.sftp.2.9.0 to download file from remote server, it appears below exception while downloading file:
org.apache.sshd.common.SshException: Channel is being closed
at…

rachel.ren.green
- 1
- 1
0
votes
1 answer
Read only VirtualFileSystemFactory
I am trying to create a read only VirtualFileSystemFactory for a custom sftp server using Apache Mina SSHD library. I have searched a lot but it seems that I cant find the solution to this problem.
IS there maybe someone who knows how to do this…

Thanasis B
- 49
- 9
0
votes
1 answer
how can i download a file from sshd server to jsch client properly mobile to mobile
i have a sshd server running on my mobile without error i am trying to download a file from my mobile internal storage using jsch as client . getting this errors
** CLIENT **
public void startClient(){
String localFile =…

CodeBlack
- 1
- 2
0
votes
0 answers
How can I setup Apache Mina to save uploaded files to a database?
I'm looking for example or any documentation that would help me get files to go into the database instead of the file system.
I tried setting it up like so:
val sshd = SshServer.setUpDefaultServer();
…

Will T
- 1
0
votes
0 answers
How to stream data between server and client
I am using Apache Mina SSHD to communicate with two Android devices. I have server-side code and client-side I'd like to establish a connection and start streaming data (byte array packet) from server to client and client to server until a button…

CodeBlack
- 1
- 2
0
votes
0 answers
Apache ssh public key implementation in ssh-core 0.14.0
I want to implement ssh public key authentication in sshd-core 0.14.0 version. I want to use default implementation provided by apache sftp server. How can I enabled default public key authentication

Sagar
- 31
- 2