Hi,

what Karaf version are you using ?

Did you try to find on 0.0.0.0 instead of the loopback ?

Do you have something in the log when sshd starts ?

Regards
JB

On 24/01/2019 09:48, Yogesh Sharma wrote:
> Hi List,
> 
> We are getting "Failed to get the session." while trying to connect to
> karaf using client. Actual issue is we are unable to list bundle.
> 
> 
> We are using custom sshPort in org.apache.karaf.shell.cfg i.e. :
> 
> # cat org.apache.karaf.shell.cfg | grep -v "^#"
> sshPort = 22222
> sshHost = 127.0.0.1
> sshIdleTimeout = 1800000
> sshRealm = karaf
> hostKey = ${karaf.etc}/host.key
> hostKeyFormat = simple
> sshRole = admin
> completionMode = GLOBAL
> 
> However, I don't see that this port is listening and we do bin/client we
> get below message:
> 
> [root@localhost etc]# netstat -tulnp | grep 22222
> [root@localhost etc]#
> 
> Login Attempt using client is failing with *"Failed to get the session."*
> 
> *[root@ip-10-89-83-49 etc]# ../bin/client
> Logging in as karaf
> Failed to get the session.*
> 
> [root@ip-10-89-83-49 etc]# ../bin/client -a 22222
> Logging in as karaf
> Failed to get the session.
> 
> [root@ip-10-89-83-49 etc]# ../bin/client -a 22222 -h 127.0.0.1
> Logging in as karaf
> Failed to get the session.
> [root@ip-10-89-83-49 etc]#
> 
> Any suggestions please ?
> 
> 
>  /Thanks & Regards,
> 
> Yogesh Sharma /

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to