I use Ubuntu 22. Does not connect with login/password via SSH to Ubuntu 18, Ubuntu 20.

I use Ubuntu 22. Does not connect with login/password via SSH to Ubuntu 18, Ubuntu 20.

avatar

Hello. I use Ubuntu 22. The version of RDM 2024.1.0.8 is installed. Before this, I tried earlier versions of RDM 2023.
Does not connect with login/password via SSH to Ubuntu 18, Ubuntu 20.
It connects successfully to Ubuntu 22. From the terminal of the OS itself there are no connection problems with either Ubuntu 18 or Ubuntu 20.
I specifically set the setting to connect interactively in the terminal, after the “User” invitation: I enter the login and a blank screen and nothing happens. Perhaps this has something to do with openssl encryption... Has anyone had this? Did you manage to fix it? or is this a bug?

All Comments (10)

avatar

Hello mailsambest,

I can't reproduce the issue on my side, I manage to connect to an Ubuntu 18 via SSH with the interactive authentication in the terminal. But if we can manage to get some logs it would helps us to investigate.

Can you please open RDM in the terminal with this command: remotedesktopmanager
Then try to connect again, and look if there is some logs that appear in the terminal (the one that you run the remotedesktopmanager command).

Another way to get some logs would be to set the verbose level at "2" in the SSH entry settings (you can find the option in "SSH Shell" > "Advanced")
Then try to connect again, it should print more information about what happen when you enter the password.

To confirm if I understand correctly your entry settings, you don't have set any user/password and the "Interactive authentication in terminal" (under "SSH Shell" > "Advanced") is set to "Yes"?

Regards,

Gabriel Dubois

avatar

Detailed log.
when the protocol is selected in the parameters, connect via ipv4
[20.04.2024 06:31:38] Devolutions Protocols version: 2024.2.12.1 Linux
[20.04.2024 06:31:38] Terminal font: Noto Sans 12 [Noto Sans, fixed=False]
[20.04.2024 06:31:38] Starting SSH, verbose level: 4
[20.04.2024 06:31:38] Setting up connection
[20.04.2024 06:31:46] Connecting to port: 22 (IPv6 - 4)
[20.04.2024 06:31:46] SSH banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11

[20.04.2024 06:31:46] Sending kex init
[20.04.2024 06:32:50] Disconnection in progress
[20.04.2024 06:32:50] Bytes sent: 1104, Bytes received: 42
[20.04.2024 06:32:50] Packets sent: 1, Packets received: 0
[20.04.2024 06:32:50] Kex completed: 0
[20.04.2024 06:32:50] Pending kex: 1
[20.04.2024 06:32:50] Disconnecting
----------

via ipv6
[20.04.2024 06:33:42] Devolutions Protocols version: 2024.2.12.1 Linux
[20.04.2024 06:33:42] Terminal font: Noto Sans 12 [Noto Sans, fixed=False]
[20.04.2024 06:33:42] Starting SSH, verbose level: 4
[20.04.2024 06:33:42] Setting up connection
[20.04.2024 06:33:45] Connecting to port: 22 (IPv4 - 6)
[20.04.2024 06:33:45] SSH banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11

[20.04.2024 06:33:45] Sending kex init
[20.04.2024 06:34:28] Disconnection in progress
[20.04.2024 06:34:29] Bytes sent: 1104, Bytes received: 42
[20.04.2024 06:34:29] Packets sent: 1, Packets received: 0
[20.04.2024 06:34:29] Kex completed: 0
[20.04.2024 06:34:29] Pending kex: 1
[20.04.2024 06:34:29] Disconnecting
---------

default:
[20.04.2024 06:36:25] Devolutions Protocols version: 2024.2.12.1 Linux
[20.04.2024 06:36:25] Terminal font: Noto Sans 12 [Noto Sans, fixed=False]
[20.04.2024 06:36:25] Starting SSH, verbose level: 4
[20.04.2024 06:36:25] Setting up connection
[20.04.2024 06:36:29] Connecting to port: 22 (IP any)
[20.04.2024 06:36:29] SSH banner: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11

[20.04.2024 06:36:29] Sending kex init
[20.04.2024 06:36:42] Disconnection in progress
[20.04.2024 06:36:43] Bytes sent: 1104, Bytes received: 42
[20.04.2024 06:36:43] Packets sent: 1, Packets received: 0
[20.04.2024 06:36:43] Kex completed: 0
[20.04.2024 06:36:43] Pending kex: 1
[20.04.2024 06:36:43] Disconnecting

avatar

Regardless of the mode: in the terminal or in the window, after entering the login, there is no further activity in the program.

avatar

server log where I connect:
Apr 20 07:34:12 sshd[2123161]: debug3: fd 5 is not O_NONBLOCK
Apr 20 07:34:12 sshd[2123161]: debug1: Forked child 2123200.
Apr 20 07:34:12 sshd[2123161]: debug3: send_rexec_state: entering fd = 8 config len 339
Apr 20 07:34:12 sshd[2123161]: debug3: ssh_msg_send: type 0
Apr 20 07:34:12 sshd[2123161]: debug3: send_rexec_state: done
Apr 20 07:34:12 sshd[2123200]: debug3: oom_adjust_restore
Apr 20 07:34:12 sshd[2123200]: debug1: Set /proc/self/oom_score_adj to 0
Apr 20 07:34:12 sshd[2123200]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Apr 20 07:34:12 sshd[2123200]: debug1: inetd sockets after dupping: 4, 4
Apr 20 07:34:12 sshd[2123200]: Connection from IP port 1483 on IP port 22 rdomain ""
Apr 20 07:34:12 sshd[2123200]: debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.11

avatar

Hello,

Thank you for providing the logs. From the output, it seems like there might be an issue with the handshake process (kex).

[20.04.2024 06:36:29] Sending kex init
[20.04.2024 06:36:42] Disconnection in progress
[20.04.2024 06:36:43] Bytes sent: 1104, Bytes received: 42
[20.04.2024 06:36:43] Packets sent: 1, Packets received: 0
[20.04.2024 06:36:43] Kex completed: 0
[20.04.2024 06:36:43] Pending kex: 1
[20.04.2024 06:36:43] Disconnecting

To dive deeper into this issue, could you please run the following command and provide the output? :
ssh -v <SERVER> exit 2>&1 | grep "kex:"

This will capture and filter the output to show only the key exchange attempts, which can tell us more about the issue. Once you have the output, please share it here.

Best regards,

Simon Duguay Létourneau

avatar

Thanks for helping me figure out the problem.
Connected to different servers on Ubuntu 18, 20, the output is the same:

debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none


There are no problems connecting from the OS terminal.

avatar

Hello,

I have not been able to reproduce your issue connecting to an Ubuntu 18 server, and there is nothing unusual in those logs. I will talk to our SSH engineer about your case.

In the meantime, please provide your system diagnostic (Help -> Diagnostic -> Copy button at bottom left) and the OpenSSL version running on your servers and your machine by doing openssl version

Simon Duguay Létourneau

avatar

Hello!
requested information:

OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

========== DIAGNOSTIC ==========

Ubuntu 22.04
Kernel version [6.5.0.1004]
Desktop environment [KDE]
Display server [x11]
Architecture [X64]
Support local password saving [Ok]
Is administrator [Ok]
Is system administrator [Ok]
Is database administrator [Ok]
Is elevated privilege [No]
Workspace size [1767 / 877]
Is Internet connected [Ok]
Allow multiple instances [No]
Allow drag-and-drop [Ok]
Auto refresh [No]
Debug level [1]
Running since [Running since: 4 min 47 sec]

========== DATA SOURCE ==========

Data source ID: aeb99c39-2aad-4979-a876-2a6a9ec3dec9
Repositories (count): 0
Data source type: SQLite
Data source settings size: 188 Bytes
User specific settings size: 0 Bytes
Connection protocol:
Caching/Offline: Disabled (File, OpenMCDFv2)
Allow connection states: True

Repository (ID): (aeb99c39-2aad-4979-a876-2a6a9ec3dec9)
Repository size: 2.2 KB
Entries/Items: 3/3
Sessions: 3
Data entries: 0
Credentials: 0
Sub entries: 0
Documents: 0
Contacts: 0
-->Sub total: 3

Session tools: 0
Folders: 0
--> Total: 3

Virtual folders: 0
Custom images: 0
Custom images (legacy): 0
RTF notes: 0

Connection client version: 0x0000000000000000

avatar

openssl on servers:

OpenSSL 1.1.1f  31 Mar 2020
avatar

Hello mailsambest,

Do you still reproduce this issue with the newest version of RDM Linux (2024.2.2.3)?

Regards,

Gabriel Dubois