Problems with both ssh and telnet

31 views
Skip to first unread message

Peter Heitman

unread,
Feb 2, 2016, 2:13:31 PM2/2/16
to CRaSH User Group
I am trying to embed CRaSH in my Spring application (jar file). I am having problems connecting with both ssh and telnet. Any help will be greatly appreciated. FWIW these are the versions I am using:

        <dependency>
     <groupId>org.crashub</groupId>
     <artifactId>crash.embed.spring</artifactId>
     <version>1.3.2</version>
        </dependency>
        <dependency>
     <groupId>org.crashub</groupId>
     <artifactId>crash.connectors.ssh</artifactId>
     <version>1.3.2</version>
        </dependency>
        <dependency>
     <groupId>org.crashub</groupId>
     <artifactId>crash.connectors.telnet</artifactId>
     <version>1.3.2</version>
        </dependency>


For ssh, I am hitting the same issue as https://groups.google.com/forum/#!searchin/crash-users/ciphers/crash-users/M3Wxys5omvQ/J_twrILLZ5EJ but I've already implemented adding BouncyCastle as a security provider (I had to do that to get this far). I added it as a dynamic provider and then as a test added it as a static provider. In both cases I still get the error:

no matching cipher found: client aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,rijnda...@lysator.liu.se server 

It appears that the sshd server does not support any ciphers. The SSHD plugin seems to initialize properly, but when I connect over SSL it gives this error. Note that I've also set the file path for the key file and asked that it be generated the first time I connect over SSL. That file was generated fine.

For telnet, when I attempt to connect over telnet I get the following exception:

14:01:39.313 [Thread-3] DEBUG n.w.telnetd.net.ConnectionManager - makeConnection()::Socket[addr=/127.0.0.1,port=63035,localport=5000]
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - Character mode initialized.
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - Reported terminal name XTERM
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - handleNEWENV()
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - handleNEIs()
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariables()
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariableName()
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariables()::NE_VAR_DEFINED
14:01:39.324 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariableValue()
14:01:39.325 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariables()::NE_VAR_OK:VAR=DISPLAY VAL=pheitman-panorama.cisco.com:1.0
14:01:39.325 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariableName()
14:01:39.325 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariables()::NE_VAR_DEFINED
14:01:39.325 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariableValue()
14:01:39.325 [Thread-3] DEBUG net.wimpi.telnetd.io.TelnetIO - readNEVariables()::NE_IN_END
14:01:40.327 [Thread-3] DEBUG net.wimpi.telnetd.io.TerminalIO - Set terminal to net.wimpi.telnetd.io.terminal.xterm@17207f5b
14:01:40.327 [Thread-3] INFO  n.w.telnetd.net.ConnectionManager - connection #1 made.
14:01:40.329 [Connection1] DEBUG net.wimpi.telnetd.shell.ShellManager - [Factory Method] public static net.wimpi.telnetd.shell.Shell org.crsh.telnet.term.TelnetHandler.createShell()
14:01:40.330 [Connection1] ERROR net.wimpi.telnetd.net.Connection - run()
java.lang.NullPointerException: null
at org.crsh.telnet.term.TelnetHandler.run(TelnetHandler.java:38) ~[ngacs-exec-6.4.1-SNAPSHOT-uber.jar:na]
at net.wimpi.telnetd.net.Connection.run(Connection.java:119) ~[ngacs-exec-6.4.1-SNAPSHOT-uber.jar:na]
14:01:40.332 [Connection1] DEBUG n.w.telnetd.net.ConnectionManager - registerClosedConnection()::Thread[Connection1,5,net.wimpi.telnetd.net.ConnectionManager@1eb9a3efConnections]
14:01:40.332 [Connection1] DEBUG net.wimpi.telnetd.net.Connection - Closed Thread[Connection1,5,net.wimpi.telnetd.net.ConnectionManager@1eb9a3efConnections] and inactive.
14:01:40.332 [Connection1] DEBUG net.wimpi.telnetd.net.Connection - run():: Returning from Thread[Connection1,5,net.wimpi.telnetd.net.ConnectionManager@1eb9a3efConnections]
14:01:40.660 [Thread-2] INFO  n.w.telnetd.net.ConnectionManager - cleanupClosed():: Removing closed connection Thread[Connection1,5,]

I have successfully connected over telnet but it was by using older versions of CRaSH (1.2.11) from org.crsh. I realized that that version was out of date when I didn't find an egrep command so I switched to 1.3.2. SSH hasn't worked for me yet.

Does anyone have any suggestions on how to resolve these issues? Thanks in advance,

Peter
Reply all
Reply to author
Forward
0 new messages