Menu

#3491 SSH fails to connect to Ubuntu 9.04 server

open
5
2009-09-05
2009-09-05
tkman
No

From a windows xp pro box, IE 8, with the latest JRE connected to Ubuntu server and logged into webmin.
From the left hand list selected Other, then SSH and the main window becomes black with a Connected and online text at the bottom, and
then a Java popup appears requiring username and password. Enter valid name and password and the java popup goes way and the black main window changes from connected to disconnected and from online to offline.
In the ubuntu var\log\auth.log the following is found.
Sep 5 11:59:44 TS1 sshd[3901]: Did not receive identification string from 192.168.1.100.
This is related to the ssh connection attempt.

I went to the website of the developers of the SSH java plugin and ran a test they have their and it seemed to work fine.
Thus I suspect this is an integration issue with webmin.

On the xp box in the Java console the following is displayed.
Java Plug-in 1.6.0_07
Using JRE version 1.6.0_07 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Todd

----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

Applet: overriding value of Socket.host with 192.168.1.100
** JTA - Telnet/SSH for the JAVA(tm) platform
** Version 2.6 for Java 2+
** Copyright (c) 1996-2005 Matthias L. Jugel, Marcus Meissner
** Build: 20060208-0533
jta: loading plugin 'Status'
jta: loading plugin 'Socket'
jta: loading plugin 'SSH'
jta: loading plugin 'Terminal'
Failed to get clipboard - copy and paste will not work
colorSet: /de/mud/terminal/colorSet.conf
Terminal: ignoring unknown cursor color code: null
sshio:setWindowSize(), sizing in init phase not supported.

Exception in thread "Thread-6" java.lang.NullPointerException
at sun.plugin.util.AnimationPanel.createTranslucentImage(Unknown Source)
at sun.plugin.util.AnimationPanel.createGradientShapeImage(Unknown Source)
at sun.plugin.util.AnimationPanel.initBackground(Unknown Source)
at sun.plugin.util.AnimationPanel.preloadResources(Unknown Source)
at sun.plugin.util.AnimationPanel.doPaint(Unknown Source)
at sun.plugin.util.AnimationPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
remotemajor 2
remoteminor 0

...

Discussion

  • Jamie Cameron

    Jamie Cameron - 2009-09-05

    Does your SSH server accept SSH version 1 connections?

    If not, another alternative is the new Text Login module that allows an interactive shell login without needing Java. You can find it at :
    http://www.webmin.com/cgi-bin/search_third.cgi?search=ajaxterm

     
  • tkman

    tkman - 2009-09-06

    Received a response from the developer of SSH see below.

    It looks like the SSH plugin is outdated and needs to be replaced with something newer like JCSH.

    We do not support SSH protocol v2, only protocol v1/v1.5... Your server however only
    has v2 (the v1.5 protocol had some man in the middle issues that needed to be fixed).

    You can reenable Protocol 1 in the sshd_config if you want to, then it should work,
    otherwise look at JCSH.

    We have no plans to develop JTA any further.

    Ciao, Marcus

     

Log in to post a comment.

Auth0 Logo