Users

All Posts (3)

avatar

jonesgl

SSH Session multiplexing

avatar
avatar
avatar

Thank you,


Setting up OTP does sound interesting, i would not mind trying that also if you have time to provide that information.


Regards

SSH Session multiplexing

avatar
avatar
avatar

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.

SSH Session multiplexing

avatar
avatar
avatar

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:

You can reuse SSH connections by enabling OpenSSH multiplexing using 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.

How SSH Connection Reuse Works

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!

1 - 3 of 3 items