1 vote
Currently when you duplicate an existing ssh session you are prompted for a password again (passwords not saved locally as I know this would resolve issue but it is not what I want).
I would like to have ssh session multiplexing so that a duplicate of a connected session re-uses the original connection but in a new and different terminal.
Copied from google search:
ControlMaster, ControlPath, and optionally ControlPersist in your ~/.ssh/config. This lets new SSH sessions piggyback on an existing master connection, avoiding repeated authentication and speeding up subsequent commands.SSH multiplexing allows multiple sessions to share a single TCP connection. When the first SSH session is opened as a master, later sessions become slaves and reuse the same connection instead of creating new ones. This eliminates repeated handshakes and authentication.
Thank you!
Hello,
Thank you for the request. It could be interesting to find a way to work this in. We'll keep an eye out for additional feedback to help us prioritise this.
Additionally, I would be curious to know why you don't store your passwords in RDM at the moment. Is it company policy, do you use a different way to store passwords, etc? It would help to know your reality as there may be other solutions or potential ideas that could come out of this.
Regards,
Hubert Mireault
I was thinking some more about this and there's a workaround that's possible at the moment.
If you store your username in an entry and set the password to "Always ask password", then configure your SSH shell entry to point to this credential, the result will be what you're looking for. You will be prompted once for the password, and when you duplicate this SSH entry, it will not prompt again. It doesn't use multiplexing directly, but it achieves the same thing: you can duplicate the entry and not be prompted for the password again.


Could you try this out and see if it works how you'd expect?
Regards,
Hubert Mireault
Hi
Thank you for this quick response.
This worked well and I will be using it, but it is not exactly what was needed. It prompts for the password once. On a regular connection it duplicates a session and no longer prompts for a password. The only drawback with this is that, for sessions that use MFA it does perform an MFA prompt (which may actually be safer).
When you use true ssh multiplexing, you will get no prompts.
This however is a great workaround that I will use, but if possible, please still look into the ssh multiplexing.
Thanks for the additional information. I indeed did not take into account the MFA prompt. I think it might still be possible to achieve this with the current configurations in the application, but it adds another layer of complexity and would require you save your TOTP in RDM, which you may or may not wish to do. If you'd like to know more about how to configure this, let me know.
At any rate, I'll open an internal ticket to be able to duplicate an SSH entry and not ask for any authentication prompts. I don't think multiplexing is a hard requirement here, just the end goal, so we'll see what makes the most sense for the application.
Regards,
Hubert Mireault
Thank you,
Setting up OTP does sound interesting, i would not mind trying that also if you have time to provide that information.
Regards