Details
-
Task
-
Resolution: Done
-
Minor
-
jboss-fuse-6.2
-
%
Description
fuse log:tail
2014-09-25 17:04:55,847 | INFO | a]-nio2-thread-1 | ServerUserAuthService | ? ? | 58 - org.apache.sshd.core - 0.12.0 | Session someuser@/127.0.0.1:39476 authenticated Exception in thread "Thread-77" java.lang.SecurityException: Current user has no associated roles. at org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl.<init>(SecuredCommandProcessorImpl.java:65) at org.apache.karaf.shell.security.impl.SecuredCommandProcessorImpl.<init>(SecuredCommandProcessorImpl.java:50) at org.apache.karaf.shell.console.jline.Console.createSecuredCommandProcessor(Console.java:237) at org.apache.karaf.shell.console.jline.Console.run(Console.java:181) at java.lang.Thread.run(Thread.java:745) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.doRun(ShellFactoryImpl.java:165) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4$1.run(ShellFactoryImpl.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:47) at org.apache.karaf.shell.ssh.ShellFactoryImpl$ShellImpl$4.run(ShellFactoryImpl.java:154)
but ssh shell hangs
jludvice@josef-tp ~ ssh someuser@localhost -p 8101 The authenticity of host '[localhost]:8101 ([127.0.0.1]:8101)' can't be established. DSA key fingerprint is 31:d8:ef:4d:48:e5:77:cd:2c:85:62:ec:ac:3b:88:a6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '[localhost]:8101' (DSA) to the list of known hosts. Password authentication Password: #=> shell stays frozen here
Ssh client should tell user, that he has not enough permissions or some meaningfull message. Hangup shell is not nice for user.
I couldn’t kill it with CTRL+C. I had to close whole terminal app.