SSH -j (PoxyJump) configuration
Thank you for the update. I appreciate it and the efforts of you folks.
Cheers,
Merlin.
Copying a session entry
Thanks for the reply and the tip.
Looking very forward to seeing the duplicate entry feature in the next version.
Cheers,
Merlin.
SSH -j (PoxyJump) configuration
Hi,
From what I have been reading in the forums, currently RDM does not support the SSH -J (ProxyJump configuration directive) option. This is causing me a major issue with continuing with RDM. I’m hoping support is either in the pipeline, I’m missing something, or there is a work around.
From the SSH man page:
-J destination
Connect to the target host by first making an ssh connection to the jump host described by destination and then establishing a TCP forwarding to the ultimate destination from there. Multiple jump hops may be specified separated by comma characters. This is a shortcut to specify a ProxyJump configuration directive. Note that configuration directives supplied on the command-line generally apply to the destination host and not any specified jump hosts. Use ~/.ssh/config to specify configuration for jump hosts.
In our case all external connections go through a bastion host (aka jump box, proxy host, ssh gateway). This means to connect to the host we want we use the equivalent to “ssh -J user@jumpbox.example.com user@targethost.example.com”. Without supporting the -J option we need to ssh into jumpbox.example.com and from there ssh into targethost.example.com. This is less than ideal and when managing many hosts it is a pain.
I have tried configuring the “Gateways” and “VPN/Tunnel/Gateway” sections In the SSH session, but either I’m doing something wrong or it is not working or not intended to work the way I thought.
Is there any solution to the above in RDM on iOS?
Relevant posts asking for the same feature:
https://forum.devolutions.net/topics/38761/shared-ssh-gateway-aka-jumpbastion-host#171183
this one seems to ask for the same feature… the ability to configure a ssh gateway that could then be used in multiple ssh sessions would be ideal
Also, can you point out documentation of KB articles that show examples on how to configure and use the “Gateways” and “VPN/Tunnel/Gateway” options in the SSH session section.
Cheers,
Merlin
Copying a session entry
Hi,
There does not appear to a way to make a copy of an existing entry or to use an existing entry as the basis for creating a new entry. For example, I have an SSH session to a particular host through a jump box. I would like to create several similar sessions that the only difference is the targeted host. In the ideal world I would do something like copy the existing session and edit it to change the session name and the targeted host, leave everything else the same and save it. Another way would be during the create entry process to be able to select an existing entry as a template for the new entry.
Is any of the above possible and if it is not I’d like to recommend it as a feature to add.
Cheers,
Merlin.
SSH error parsing private key
Hi,
Thank you very much for the follow up.
I have updated the app on my iPad, regenerated my personal key, and tested connections. I can confirm that it now works as expected.
Great support as always!
Cheers,
Merlin.
SSH error parsing private key
Thank you for the reply/update. Please let me know if there is anything further I can try and/or information I can provide.
SSH error parsing private key
Hi,
Just did the following:
reset my personal key
pasted in the private and public parts of an externally generated key and saved it without a passphrase
configured a session to use my personal private key
attempted a connection
result: same error
reset my personal key
selected data, generated a key pair and saved it.
just to be sure, reconfigured the session for no private key and saved it and then configured it to use my private key
attempted a connection
result: same error
what I’m doing incorrectly I have no idea. Either I’m missing something or I tripped over a bug… but certainly someone else should have see this also if it was/is a bug.
Cheers,
Merlin
SSH error parsing private key
In case it makes a difference (meant to add this previously):
iOS 17.3.1
RDM 2023.3.5
New iPad Pro, fresh install of RDM
SSH error parsing private key
Hi and thanks for the reply.
I certainly can try again, however please understand that I have tried generating a key pair using the built in generator many times (10-12 is a conservative estimate). I have tried:
generating the key in the different algorithms available
saving the key to a file in the different file formats available and then attempting to load it both into the session and into the personal key entry.
selecting data and then using the generator to generate the key pair (again, using different algorithms) with in the session entry and personal key entry,
generating the key both with and without passphrases
generating the key pair both as the personal key, and then selecting that for the session, as well as generating a key for each session.
I guess what I’m saying is that over the course of several hours of attempts I have assumed that I’m doing something incorrectly and have tried every combination I can think of… with the same results every time.
What I have not done is taken a private key that I have generated outside of RDM and pasted it into the session key, having selected data.
I’ll try generating a key from within RDM again as well as using an externally generated key. However, I would appreciate any other suggestions I can do to debug this process that you may have.
Cheers,
Merlin.
Opening multiples of the same session?
Just answered my own question by looking through the Feature Requests forum. For anyone else looking:
Yes you can open multiple instances of a connection.
Navigate into settings, and then application, and turn on the option to allow multiples of the same connection.
Opening multiples of the same session?
Is there a way to open up multiple instances of the same ssh session?
When on my laptop or desktop I will run multiple terminal suggestions to the same server (not using RDM). Is there a way to do this in RDM on iOS?
SSH error parsing private key
Hi,
I have a fresh install of RDM and am attempting to configure SSH connections on my iPad. I have no problem with connections that use a password. However I cannot get any key configuration to work.
I have tried configuring a personal private key via settings as well as using ‘data’ and generating a key. I have tried most of the key types as well as both with and without a passphrase.
I have turned on debugging and the error I constantly get is “error parsing private key”.
Any assistance would be greatly appreciated as I’m not sure what more to try.
Here is a copy of the debug messages from one of the ssh connection attempts:
2024-02-17 9:13:12 p.m.] Starting SSH, verbose level: 3
[2024-02-17 9:13:12 p.m.] Setting up connection
[2024-02-17 9:13:12 p.m.] Connecting to port: 22 (IP any)
[2024-02-17 9:13:12 p.m.] SSH banner: SSH-2.0-OpenSSH_7.4p1 Debian-10+deb9u7
[2024-02-17 9:13:12 p.m.] Sending kex init
[2024-02-17 9:13:13 p.m.] Received kex init
[2024-02-17 9:13:13 p.m.] Selected algorithms: curve25519-sha256, ssh-ed25519, chacha20-poly1305@openssh.com, chacha20-poly1305@openssh.com, implicit by cipher, implicit by cipher, none, none
[2024-02-17 9:13:13 p.m.] Sending Ed25519 kex init
[2024-02-17 9:13:13 p.m.] Received Ed25519 kex reply
[2024-02-17 9:13:13 p.m.] Successfully authentified server
[2024-02-17 9:13:13 p.m.] Sending new keys message
[2024-02-17 9:13:13 p.m.] Received new keys message
[2024-02-17 9:13:13 p.m.] Sending userauth service request
[2024-02-17 9:13:13 p.m.] Received extension info message
[2024-02-17 9:13:13 p.m.] Server accepts public key types: ssh-ed25519,ssh-rsa,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
[2024-02-17 9:13:13 p.m.] Received service accepted message
[2024-02-17 9:13:13 p.m.] Using provided key data
[2024-02-17 9:13:13 p.m.] Error parsing private key
[2024-02-17 9:13:13 p.m.] Unable to use the key
[2024-02-17 9:13:13 p.m.] Sending userauth init request
[2024-02-17 9:13:13 p.m.] Received userauth failure: publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
[2024-02-17 9:13:13 p.m.] Starting interactive authentication