Users

All Posts (9)

avatar

krasnojarsk

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

Hi,

I can confirm an imported key works with the agent. I tried the regular and also the legacy terminal under the following circumstances:

just ignore the lines with POSSIBLE BREAK-IN ATTEMPT

MobaXTerm with ED25519 key (just to verify)

Dec 12 07:50:34 linux.host sshd[1956]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 07:50:34 linux.host sshd[1958]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 07:50:34 linux.host sshd[1958]: Received disconnect from 192.168.2.44 port 57392:11: No more authentication methods available [preauth]

Dec 12 07:50:34 linux.host sshd[1958]: Disconnected from 192.168.2.44 port 57392 [preauth]

Dec 12 07:50:34 linux.host sshd[1956]: Accepted publickey for root from 192.168.2.44 port 57391 ssh2: ED25519 SHA256:WoHaHereYouWouldSeeSomeKeyStuffbutIremovedIt

Remote Desktop Manager with ED25519 defined at connection level

Dec 12 07:52:40 linux.host sshd[1989]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 07:52:40 linux.host sshd[1989]: Connection closed by 192.168.2.44 port 57400 [preauth]

Dec 12 07:56:28 linux.host sshd[1994]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 07:56:28 linux.host sshd[1994]: Accepted publickey for root from 192.168.2.44 port 57407 ssh2: ED25519 SHA256:WoHaHereYouWouldSeeSomeKeyStuffbutIremovedIt

Remote Destkop Manager with ED25519 imported to SSH-Agent

Dec 12 08:09:36 linux.host sshd[2035]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 08:09:36 linux.host sshd[2035]: Accepted publickey for root from 192.168.2.44 port 57437 ssh2: ED25519 SHA256:WoHaHereYouWouldSeeSomeKeyStuffbutIremovedIt

Dec 12 08:13:11 linux.host sshd[2057]: Address 192.168.2.44 maps to mycomputer.mydomain, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!

Dec 12 08:13:11 linux.host sshd[2057]: Accepted publickey for root from 192.168.2.44 port 57440 ssh2: ED25519 SHA256:WoHaHereYouWouldSeeSomeKeyStuffbutIremovedIt

So far it seems to work since all 3 tests show the same result. One quick question afterwards. I don't know for sure but I somehow remember that there was the possibility to import a key into the SSH-Agent via Clipboard and not only by file. Is that gone or am I wrong?

I ask because I want to know what happens if I import a key from file into the SSH agent. Is the key then stored within Remote Desktop Manager or does the agent still point to the file? As you can imagine if it only points to the file, the file could be deleted. Maybe you could point out that a little bit for better understanding. I assume when adding a private key within a connection entry it is definitely stored within the Database Backend (in our case Enterprise with MSSQL).

Thanks for following up

Kind regards

Peter

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

As far as I can tell now (testing with RDM 2019.1.41.0) SSH tunnel seem to work now. I tested a "Remote port forwarding" tunnel, where the remote host (192.168.1.17) forwards its port 8088 to my localhost (127.0.0.1:8080). This is the way I use a local proxy running on the host where I use RDM to allow the remote host to update via https through my local running proxy. I could also authenticate the tunnel using SSH-Keys but only ones I store for the session.

I could again and still not use the same key from the SSH-Key-Agent.

When trying to use the SSH-Key-Agent as source for the key it always prompts for the password while there is none when using the SSH-Key (the key has no password). After entering the correct password when using the SSH-Key-Agent the tunnel works but I assume it is established using the password not the key.

I can see some progress but there still are some bugs. Don't you have a host to test things out? I am willing to spin up a 5$ Droplet on Digital ocean just to give you the opportunity to test these things out.

Regards

Peter

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

Hi Vincent,

while you have "your finger on the bug", I think there seems to be also a bug in creating ssh tunnels. I have all of them working in MobaXTerm and Putty but no chance to get it working with Remote Desktop Manager. The only way I could get this tunnel (see image attached) working was to create it in Putty and then import the putty session, which is not an option because of the ugly putty interface and no way to change anything afterwards. So maybe while looking at the code for the key agent you stumble upon some other "related" things?

See attached images for info what I want to accomplish and works with MobaXterm and putty but not with RDP Manager

Regards

Peter

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

What do you mean exactly by "Legacy Terminal"?

X server

avatar
avatar
avatar
avatar
avatar

I added a copy of xming in a subfolder of my Remote Desktop Manager installation. Then (per connection) I setup

Events -> Before Connect -> Command Line

Command: <xmingpath>\Xming.exe :0 -multiwindow -clipboard -xkblayout de -xkbmodel pc105 -emulate3buttons -s 1 -silent-dup-error

This will create an invisible X-Window with clipboard support, german keyboard layout 3 button mouse emulation and 1 minute screensaver timeout. It will not start xming if already running (-silent-dup-error). This solution works quite well for me.

XMing is running in systray by default and can also be closed there.

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

Hello Denis,

I had time to do some tests. I added 2 PDFs (containing Screenshots and the logs) to this post. As far as I can tell, the agent always thinks it has no key for that connection.

I first tried a connection via SSH with an SSH-Key Credential and that worked. After that I used the agent with the same key, the agent with the same key from a file in openssh format and the agent with the same key from file in putty format. - Nothing worked!

To your answer, that you can not reproduce it I have to say it is not hard to create an SSH key pair and test it on a server.

Regards

Peter

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

I will try to log the problem next week in a traceable way, e.g. screenshots, logs etc. if my normal work allows it.

Problem with Key Agent & Key Forwarding since latest updates

avatar
avatar
avatar
avatar
avatar

I can confirm, this is still the case with

2019.1.25.0 64-bit

Today I tried nearly all possible combinations to use a password protected private key with the agent - no way!

For the purpose of reproducing could you please describe what exactly I should do to make you believe something is wrong here?

The following is my test szenario.

1. local RDM data source type SQLite

2. Add Credential Entry -> Private Key

Private Key Type: Data

-> paste the key ( I tried password protected putty format and password protected ssh-keygen format )

-> Enter the passphrase for the private key

-> Uncheck [ ] Always prompt for passphrase

Advanced -> [x] Automatically load to key agent

3. OK to Save

Now I start the SSH Key Agent and it will show the key as

SSH2 4096 SSH_RSA <no comment> <fingerprint>

Btw. I tried different SSH-key algorithm including ones generated with the RDM SSH keygenerator.

Then I created a new Session with

GENERAL

Host: <ip of host>

Username: username to use

Password: <empty>

PRIVATE KEY

<no private key>

ADVANCED

[x] Use SSH authentication agent

Result:

An unknown SSH error was encountered.

Disconnecting

I have the following additional questions to this procedure. How does RDM determine which key to use by this method which is described in the docs?

Let's assume I have 100 SSH-Keys stored in the SSH-Agent. Which one will be used??

When I remove the checkbox [ ] Use SSH authentication agent from the credential entry and configure the SSH-Key for the remote session manually as

PRIVATE KEY

Private Key type: Repository

Vault: SSH logins\id_rsa_rdp

Passphrase: <greyed out>

the connection works !!!

Thanks for that great tool but you should definitely invest some time in fixing this. Using SSH-Keys via Agent, where the agent unlocks the keys is an essential feature!

Regards

Peter

Possible builds for other Linux variants

avatar
avatar
avatar
avatar
avatar

Why not just creating a snap package or flatpak, those would work on all major Linux distributions are easy upgradeable and easy to create?

https://snapcraft.io/

https://flatpak.org/

Thanks in advance

1 - 9 of 9 items