muon-ssh icon indicating copy to clipboard operation
muon-ssh copied to clipboard

SSH in port 23 Session not connected

Open Runig006 opened this issue 3 years ago • 3 comments

Describe the bug I have 20 diferents ssh connections ported from snowflake. One of them is a ArchLinux with an ssh in the port 23, it run Gitlab so 22 is reserve for that.

It works in Snowflake and mostly in MuonSSH, the only thing that doesnt work is the terminal. The password is correct, if it was that nothing will work, i have tested it too. If i use SnowFlake or ssh directly it work without any problem

Steps to reproduce the behavior:

  1. Got a server with ssh and archlinux in port 23
  2. Configure Muon to connect to that machine
  3. Open the session and go to terminal
  • OS: Manjaro KDE
 Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The dialog is displayable.
        at java.desktop/java.awt.Dialog.setUndecorated(Dialog.java:1273)
        at muon.app.ssh.GraphicalInputBlocker.lambda$blockInput$0(GraphicalInputBlocker.java:36)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Trying to get allowed authentication methods...
List of allowed authentications: [publickey, password]
Trying auth method: publickey
java.lang.Exception: No suitable key providers
        at muon.app.ssh.SshClient2.authPublicKey(SshClient2.java:115)
        at muon.app.ssh.SshClient2.connect(SshClient2.java:242)
        at muon.app.ssh.SshClient2.connect(SshClient2.java:167)
        at muon.app.ui.components.session.terminal.ssh.SshTtyConnector.init(SshTtyConnector.java:54)
        at com.jediterm.terminal.ui.JediTermWidget$EmulatorTask.run(JediTermWidget.java:383)
        at java.base/java.lang.Thread.run(Thread.java:833)
Trying auth method: password
net.schmizz.sshj.connection.ConnectionException: Request failed
        at net.schmizz.sshj.connection.channel.AbstractChannel.gotResponse(AbstractChannel.java:405)
        at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:192)
        at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
        at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:515)
        at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:113)
        at net.schmizz.sshj.transport.Decoder.received(Decoder.java:203)
        at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
Terminal wrapper disconnecting
currentSession: muon.app.ui.components.session.terminal.CustomJediterm[,0,0,1280x668,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@350a78e7,flags=9,maximumSize=,minimumSize=,preferredSize=]

     

RAW Paste Data
Exception in thread "AWT-EventQueue-0" java.awt.IllegalComponentStateException: The dialog is displayable.
        at java.desktop/java.awt.Dialog.setUndecorated(Dialog.java:1273)
        at muon.app.ssh.GraphicalInputBlocker.lambda$blockInput$0(GraphicalInputBlocker.java:36)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
        at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Trying to get allowed authentication methods...
List of allowed authentications: [publickey, password]
Trying auth method: publickey
java.lang.Exception: No suitable key providers
        at muon.app.ssh.SshClient2.authPublicKey(SshClient2.java:115)
        at muon.app.ssh.SshClient2.connect(SshClient2.java:242)
        at muon.app.ssh.SshClient2.connect(SshClient2.java:167)
        at muon.app.ui.components.session.terminal.ssh.SshTtyConnector.init(SshTtyConnector.java:54)
        at com.jediterm.terminal.ui.JediTermWidget$EmulatorTask.run(JediTermWidget.java:383)
        at java.base/java.lang.Thread.run(Thread.java:833)
Trying auth method: password
net.schmizz.sshj.connection.ConnectionException: Request failed
        at net.schmizz.sshj.connection.channel.AbstractChannel.gotResponse(AbstractChannel.java:405)
        at net.schmizz.sshj.connection.channel.AbstractChannel.handle(AbstractChannel.java:192)
        at net.schmizz.sshj.connection.ConnectionImpl.handle(ConnectionImpl.java:130)
        at net.schmizz.sshj.transport.TransportImpl.handle(TransportImpl.java:515)
        at net.schmizz.sshj.transport.Decoder.decode(Decoder.java:113)
        at net.schmizz.sshj.transport.Decoder.received(Decoder.java:203)
        at net.schmizz.sshj.transport.Reader.run(Reader.java:60)
Terminal wrapper disconnecting
currentSession: muon.app.ui.components.session.terminal.CustomJediterm[,0,0,1280x668,layout=java.awt.BorderLayout,alignmentX=0.0,alignmentY=0.0,border=javax.swing.plaf.synth.SynthBorder@350a78e7,flags=9,maximumSize=,minimumSize=,preferredSize=]

Runig006 avatar Jul 17 '22 21:07 Runig006

Hello @Runig006,

I had the same problem and there is a bug in the Manjaro build. I guess it has something to do with the used java version in the Manjaro package. I downloaded the plain jar and run it with java -jar ... . Runs normally with that.

Best Martin

maddin79 avatar Jul 21 '22 10:07 maddin79

True, for a temporal soluction is not a bad idea. I just put the jar in the desktop and added the icon. If someone can fix it in the one in the snap it will be perfect.

Runig006 avatar Jul 24 '22 22:07 Runig006

Hello, what Manjaro version do you have?

devlinx9 avatar Feb 02 '23 02:02 devlinx9