#Apache Mina SSHD server

5 messages · Page 1 of 1 (latest)

magic viper
#

hi guys.. I built a SSH server using Apache Mina and StackOverflow. Now, I ran into the problem, that I am unable to get the String which was input as username or password... This is annoying and the documentation is pure shit. If anyone can tell me what I need to read the client input properly, please help me.
CNCServer: https://pastebin.com/Ab1mkdEM
Commands: https://pastebin.com/C0yzEvsG
PasswordAuth: ```public class CNCPasswordAuthenticator implements PasswordAuthenticator{

private String username, password;

Set<Thread> capthread = new HashSet<>();

@Override
public boolean authenticate(String username, String password, ServerSession session)
        throws PasswordChangeRequiredException, AsyncAuthException {
    
    // TODO Auto-generated method stub
    return false;
}

}```

teal phoenixBOT
#

This post has been reserved for your question.

Hey @magic viper! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

trim silo
#

You could use existing sshd java implementations.

magic viper
#

can you send it