2 ms·
Two options I use: 1. Client side: ProxyJump, by far the easiest 2. Server side: use ForceCommand, either from within sshd_config or .ssh/authorized_keys, bas
by elric 7mo ago
Two options I use:
1. Client side: ProxyJump, by far the easiest
2. Server side: use ForceCommand, either from within sshd_config or .ssh/authorized_keys, based on username or group, and forward the connection that way. I wrote a blogpost about this back in 2012 and I assume this still mostly works, but it probably has some escaping issues that need to be addressed: https://blog.melnib.one/2012/06/12/ssh-gateway-shenanigans/ https://blog.melnib.one/2012/06/12/ssh-gateway-shenanigans/