Questions tagged [apache-mina]

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.

281 questions
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
  • 2,579
  • 5
  • 26
  • 45
5
votes
2 answers

Apache Mina SFTP SftpSubsystem.Factory()

I am trying to setup a simple SFTP server using Apache Mine SSHD v1.2.0. I have looked at several examples on the web E.g. here, here and here. However they all have the same line in common which I cannot get NetBeans to resolve. NetBeans tells me…
AcidHawk
  • 168
  • 12
5
votes
2 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,055
  • 2
  • 14
  • 42
5
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
  • 196
  • 1
  • 1
  • 11
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
  • 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
  • 18,215
  • 23
  • 55
  • 63
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
  • 75,812
  • 80
  • 244
  • 374
4
votes
0 answers

Using Mina SSHD (Client) to connect to SFTP using Private Key

I am attempting to connect to an SFTP server that requires private key authentication and wanting to use the Mina. Looking through the documentation, I can see how to perform that authentication using password authentication but not private key…
Chuck Lowery
  • 833
  • 6
  • 15
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,406
  • 9
  • 47
  • 75
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
  • 642
  • 3
  • 10
  • 29
4
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
  • 3,609
  • 1
  • 34
  • 66
4
votes
0 answers

Apache Mina SSHD SFTP server fails to list some directories on Android

Using Apache Mina SSHD I've implemented an SSH and SFTP server in an Android app I'm working on, and I can log in through SSH fine, ls the root directory, cd to 'mnt/sdcard' and ls - all of this is working fine. I can also get su and do whatever…
math-eww
  • 290
  • 3
  • 12
4
votes
6 answers

Apache Mina Server Restart java.net.BindException: Address already in use

I have a rather annoying problem in my server application. I bind Apache Mina with the following code: acceptor.bind(new InetSocketAddress(PORT)); Where acceptor is an NioSocketAcceptor. Over a HTTP interface I can shutdown the server so I can…
Kosaki
  • 103
  • 1
  • 4
4
votes
1 answer

Apache MINA reading from IoSession

I am new to Apache MINA kindly guide me how to read from IoSession. I have stored a POJO in it. public static EchoUDPServerDiscoveryObjectResponseProperties echoProperties session.write(echoProperties);
AZ_
  • 35,659
  • 28
  • 152
  • 199
4
votes
1 answer

Unit testing of an apache mina client

I have a mina client whose connector is a NioSocketConnector. I have written integration tests of this client with real server. However, I could not find a way to do unit tests. For example, I want to test my custom decoder and encoder works…
Ricardo Cristian Ramirez
  • 1,044
  • 2
  • 16
  • 38
1
2
3
18 19