Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#3885 SSH Login Module immediately disconnecting

1.530
closed-fixed
Jamie Cameron
5
2011-04-12
2011-04-08
mpp4manu
No

I am using Webmin 1.530 on Solaris 10. Accessing webmin from Windows XP workstation via Firefox 3.6.16 browser, with Java 1.6.0_21.

Module opens and displays "Connect" button. Upon pushing "Connect" button, terminal window and login window appear. At this point, terminal window shows "online".l After typing user name and password, login window disappears and terminal window goes "offline".

Java console shows the following:

Applet: overriding value of Applet.detach with true
Applet: overriding value of Socket.host with dubsol10.apt.att.com
Applet: overriding value of Terminal.resize with screen
Applet: overriding value of Applet.detach.stopText with Disconnect
** 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
Netscape security model is no longer supported.
Please migrate to the Java 2 security model instead.

Applet: access for 'UniversalConnect' allowed
Netscape security model is no longer supported.
Please migrate to the Java 2 security model instead.

Applet: access for 'UniversalPrintJobAccess' allowed
Netscape security model is no longer supported.
Please migrate to the Java 2 security model instead.

Applet: access for 'UniversalSystemClipboardAccess' allowed
Applet: system clipboard access denied: java.security.AccessControlException: access denied (java.awt.AWTPermission accessClipboard)
Applet: copy & paste only within the JTA
sshio:setWindowSize(), sizing in init phase not supported.

remotemajor 2
remoteminor 0
addPayload2 256
SSH2: packet length 412
SSH2: padlen 8
addPayload2 160
20 95 77 -82 90 -112 -118 -12 98 115 6 -14 100 -18 -123 2 10 0 0 0 102 103 115 115 45 103 114 111 117 112 49 45 115 104 97 49 45 116 111 87 77 53 83 108 119 53 69 119 56 77 113 107 97 121 43 97 108 50 103 61 61 44 100 105 102 102 105 101 45 104 101 108 108 109 97 110 45 103 114 111 117 112 45 101 120 99 104 97 110 103 101 45 115 104 97 49 44 100 105 102 102 105 101 45 104 101 108 108 109 97 110 45 103 114 111 117 112 49 45 115 104 97 49 0 0 0 15 115 115 104 45 114 115 97 44 115 115 104 45 100 115 115 0 0 0 51 97 101 115 49 50 56 45 99 116 114 44 97 101 115 49 50 56 45 99 98 99 44 97 114 99 102 111 117 114 44 51 100 101 115 45 99 98 99 44 98 108 111 119 102 105 115 104 45 99 98 99 0 0 0 51 97 101 115 49 50 56 45 99 116 114 44 97 101 115 49 50 56 45 99 98 99 44 97 114 99 102 111 117 114 44 51 100 101 115 45 99 98 99 44 98 108 111 119 102 105 115 104 45 99 98 99 0 0 0 43 104 109 97 99 45 109 100 53 44 104 109 97 99 45 115 104 97 49 44 104 109 97 99 45 115 104 97 49 45 57 54 44 104 109 97 99 45 109 100 53 45 57 54 0 0 0 43 104 109 97 99 45 109 100 53 44 104 109 97 99 45 115 104 97 49 44 104 109 97 99 45 115 104 97 49 45 57 54 44 104 109 97 99 45 109 100 53 45 57 54 0 0 0 9 110 111 110 101 44 122 108 105 98 0 0 0 9 110 111 110 101 44 122 108 105 98 0 0 0 9 105 45 100 101 102 97 117 108 116 0 0 0 9 105 45 100 101 102 97 117 108 116 0 0 0 0 0 0 0 0 0 0 0 0 0
Packet type: 20
Packet len: 412
SSH2: SSH2_MSG_KEXINIT
- gss-group1-sha1-toWM5Slw5Ew8Mqkay+al2g==,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
- ssh-rsa,ssh-dss
- aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
- aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc
- hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
- hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96
- none,zlib
- none,zlib
- i-default
- i-default
- first_kex_follows: 0
packet length is 132, padlen is 4
packet length is 14, padlen is 10
Exception in thread "Thread-11" java.lang.StackOverflowError
at sun.awt.AppContext.get(Unknown Source)
at com.sun.java.swing.SwingUtilities3.getDelegateRepaintManager(Unknown Source)
at javax.swing.RepaintManager.getDelegate(Unknown Source)
at javax.swing.RepaintManager.addDirtyRegion(Unknown Source)
at javax.swing.JComponent.repaint(Unknown Source)
at java.awt.Component.repaint(Unknown Source)
at de.mud.jta.plugin.Status$3.offline(Status.java:169)
at de.mud.jta.event.OnlineStatus.firePluginMessage(OnlineStatus.java:56)
at de.mud.jta.PluginLoader.broadcast(PluginLoader.java:213)

Lines similar to the last three continuously repeat until the following is displayed:

Exception in thread "AWT-EventQueue-2" java.lang.StackOverflowError
at java.util.IdentityHashMap.hash(Unknown Source)
at java.util.IdentityHashMap.get(Unknown Source)
at javax.swing.RepaintManager.extendDirtyRegion(Unknown Source)
at javax.swing.RepaintManager.addDirtyRegion0(Unknown Source)
at javax.swing.RepaintManager.addDirtyRegion(Unknown Source)
at javax.swing.JComponent.repaint(Unknown Source)
at java.awt.Component.repaint(Unknown Source)
at de.mud.jta.plugin.Status$3.offline(Status.java:169)
at de.mud.jta.event.OnlineStatus.firePluginMessage(OnlineStatus.java:56)
at de.mud.jta.PluginLoader.broadcast(PluginLoader.java:213)

Whereupon, the repetition continues for a while, then stops. I assume what I'm seeing is the buffered output of the applet attempting to connect. There have been suggestions that there is an uncontrolled loop somewhere in the code that may be causing this. From the console output, it looks like it's doing just that until it hits a stack overflow.

Any help would be appreciated.

Discussion

  • Jamie Cameron
    Jamie Cameron
    2011-04-09

    Are you using the SSH module that is part of Webmin? Because unfortunately this only supports SSHv1 ..

     
  • mpp4manu
    mpp4manu
    2011-04-11

    Yes. It is the unmodified version that comes with 1.530. The server is running SSHV1 (OpenSSH), so I'm not sure why it's failing, other than there appears to be something wrong with the underlying Java/Telnet code.

    Tried a Linux (Centos 5) box running version 1.520 and noticed the applet is different and works just fine.

    Tried a Solaris 8 box running 1.520, Under Firefox 4.0, it exhibited the same behavior as the Solaris 10 (immediate logout). Under IE 8, it doesn't logout (go offline), but nothing is displayed in the terminal window no matter what you type.

    Tried using a different workstation with IE 7, and got the same results.

    Was going to try HP-UX, but it got late and the module didn't show up on a fresh 1.540 install on HP-UX 11.11

     
  • Jamie Cameron
    Jamie Cameron
    2011-04-12

    The cause might be a mismatch between the SSH protocol spoken by your SSH server and the applet.

    One alternative is to try the SSH v2 webmin module, which you can find at : http://www.webmin.com/cgi-bin/search_third.cgi?search=ssh2

     
  • mpp4manu
    mpp4manu
    2011-04-12

    I installed the SSH2 module you suggested. It worked perfectly. If you wish, please close this ticket.

    Thanks again, Jamie.

     
  • Jamie Cameron
    Jamie Cameron
    2011-04-12

    • status: open --> closed-fixed
     
  • Jamie Cameron
    Jamie Cameron
    2011-04-12

    Ok, great!