Apache Mina SSHD server

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;
}


}
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;
}


}
Pastebin
package cnc;import main.Vars;import org.apache.mina.filter.codec.Pr...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Pastebin
Commands - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
No description
4 Replies
JavaBot
JavaBot7mo ago
This post has been reserved for your question.
Hey @netty.bootstrap! 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.
Peter Rader
Peter Rader7mo ago
You could use existing sshd java implementations.
netty
nettyOP7mo ago
can you send it
JavaBot
JavaBot7mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?