Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
Description
Within my Command class I need to know the username that was authenticated; e.g. the value returned by ServerSession.getUsername():
class AnyCommand implements Command, NeedsServerSession {
protected ServerSession session;
...
public void setServerSession(final ServerSession session)
public void start() throws IOException {
System.err.println("From " + session.getUsername());
System.err.println("
");
...
}
}
Attachments
Attachments
Issue Links
- duplicates
-
SSHD-3 Provide access to the session and the authentication bits from commands
- Resolved