I'm trying to create a setup where one could "ssh" to a specific port on localhost and then get forwarded to a remote server and into a shell, without the need to enter credentials (nope, secret key is not an option, unfortunately).
So far I have set up ssh multiplexing, with
ControlMaster, so I can start a remote ssh shell without any prompts, from the local shell.
Is there a way to use that socket when new client connects to a specific port on localhost?
I've tried various combinations with
-S, with no luck. Is such a setup possible, on either Linux or Mac?
I don't mind entering localhost credentials at any point, but I'm trying to avoid entering remote credentials for all connections following the initial control connection.
localhost ----> localhost:2222 ----> remote:22 $ ssh -p 2222 forward to remote $ _ :) using an existing control socket