Excerpt from apache site : Apache MINA is a network application framework which helps users develop high performance and high scalability network applications easily. It provides an abstract,event-driven,asynchronous API over various transports such as TCP/IP and UDP/IP via Java NIO.
Questions tagged [apache-mina]
303 questions
6
votes
3 answers
Apache MINA SFTP Example
I'm trying to set up an SFTP server with multiple users that each have their own home directory.
I read this answer which explained how to set a virtual directory for a single user but I'm not sure how to have multiple users each with their own home…

Hooli
- 1,135
- 3
- 19
- 46
6
votes
1 answer
"no matching host key type found" - Apache MINA SFTP server
I’m hoping to set up a SFTP server in Java using Apache MINA.
It seems to start OK, but when I try to connect to it with an OpenSSH client, I get:
$ ssh localhost -p 2222
Unable to negotiate with ::1: no matching host key type found. Their offer:…

Rich
- 15,048
- 2
- 66
- 119
6
votes
0 answers
Apache Mina SSHD Server - How to get the list of forwarded ports
I have built a server/client system with Apache Mina SSHD.
Clients connect the server by creating a session. Then they request port forwarding:
session.startRemotePortForwarding(ssaRemote,ssaLocal);
What I need is that: In server side, I should be…

Null Pointer
- 344
- 1
- 2
- 11
6
votes
1 answer
several TCP-servers on the same port
It looks very strange for me. I can run several TCP servers on the same port.
I use Apache MINA library with following code:
IoAcceptor acceptor = new NioSocketAcceptor();
acceptor.bind(new InetSocketAddress(80));
Port 80 is already used by another…

sasha_trn
- 1,935
- 2
- 23
- 30
5
votes
0 answers
Use apache sshd ssh client got error "No detected/configured" IoServiceFactoryFactory
I want to use apache sshd project http://mina.apache.org/sshd-project/ to connect a network switch:
public void connect(){
try
{
client = SshClient.setUpDefaultClient();
client.start();
session=client.connect(account,…

wang kai
- 1,673
- 3
- 12
- 21
5
votes
1 answer
Apache SSHD client get server public key
I am trying to get the public key of a server. This is what I tried:
val serverKey = sshClient.connect("dyn mem", "localhost", "2222")
.verify()
.getSession()
.getKex()
.getServerKey()
The problem is get the result of getServerKey() is…

Jan Wytze
- 3,307
- 5
- 31
- 51
5
votes
3 answers
How To Handle Incoming Files In Apache Mina SSHD SFTP Server in Java
Currently i am working on a SFTP protocol.I have created SFTP client Using Jsch Library and SFTP Server using Apache Mina Sshd library.I have made connection between them and can successfully send files to SFTP server.Now i am working on creating a…

gihan-maduranga
- 4,381
- 5
- 41
- 74
5
votes
1 answer
Apache Mina SFTP server side channel listener for incoming files
I am trying to figure out how to implement Server side listeners for a Java based SFTP server to alert me to an incoming file transfer. I'm using the latest version of Apache Mina. My scenario is for my server to simply receive a file from a client…

Leigh Griffin
- 84
- 1
- 6
5
votes
1 answer
Trying to implement PublicKey Authentication for SFTP test server using Apache Mina. However Authenticate method is not being called
I am using Apache Mina SSHD to implement a test SFTPServer. I have been able to get things working for simple Password authentication, however I am not able to configure things for PublicKey Authentication. I have a implemented the…

Mark
- 51
- 1
- 2
5
votes
2 answers
Java: How can I get the connected port from an InetAddress?
I'm trying to build a Java NIO-based socket server using Apache Mina. I really need to know the port of the remote host, not just the IP address, and it seems that Mina only exposes a SocketAddress (which can be downcast to InetAddress) object. I…

DivideByHero
- 19,715
- 24
- 57
- 64
5
votes
1 answer
Use Mina JAR dependencies instead of bundles?
Mina seems to be deploying their artifacts as *.bundle files these days, which, at the very least, is annoying and at best downright evil.
If I depend on Mina in Maven like this:
org.apache.mina
…

Naftuli Kay
- 87,710
- 93
- 269
- 411
4
votes
2 answers
Best framework for java networking programming?
I am a newbie in java networking and I have a small project which i want to download on a LAN network and be used by just five users.
I want to use Java swing, MySQL for database and eclipse as IDE.
So what is the best framework to make network…

majd obeid
- 111
- 2
- 6
4
votes
1 answer
Apache MINA sshd | When I added the dependency and import it in the class I get "the type org.apache.sshd.client.SshClient is not accessible" error
I use Java 11 with JavaFX. When I added Apache MINA as a Maven dependency and then perform an import statement in the java class I get the following error message:
"The type org.apache.sshd.client.SshClient is not accessible"
I have added the…

sm-a
- 65
- 3
4
votes
1 answer
How to start Apache MINA FTP server using Scala/Java?
I'm trying to embed an Apache MINA FTP server in my Scala application, and am having trouble spiking it out. I'm using Apache FtpServer 1.05, and have found a couple of examples on their site which don't seem to work when I Scala-ize them.
Here's my…

Mike Cialowicz
- 9,892
- 9
- 47
- 76
4
votes
0 answers
Apache mina NioSocketAcceptor-X running 100% while idle
I am developing a java application using Apache Mina 2.0.16 as a NIO library. I admire the work and efforts that people used to create this kind of library so NIO beginners can simply create a non-blocking threaded TCP server and client. After…

AdrianES
- 670
- 3
- 13
- 29