South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
Are you asking for automatic chained logins? Or just nested jumps
Are you prompted for passwords? Or did you just create a really easy pivot for an attackerJust a 1 click solution to ssh to a server behind 4 jump hosts.
I use Termius, wonder how MobaxTerm compare.
Why not just use SSH's ProxyJump or JumpHost directives???
You don't need a fancy client to do this. It's already considered a basic SSH feature.
$ man ssh
-J destination
Connect to the target host by first making a 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.
aka
ProxyJump
$ ssh -J host1,host2,host3 your_final_host
WHY do you specifically need a GUI to do this?!?
iTerm2 is a good tool for mac
MobaXterm saves bookmarks and also passwords so it makes things a bit easier to manage.
But like I said in my first post I’m pretty sure you can add the command line to your bookmarks and do exactly what you describe.
Being back on a Mac now it’s the one App I miss from my Windows days as an all in one gateway.
Something to bear in mind is that MobaXterm also does a great many other protocols like RDP and SFTP etc so it’s a nice centralised place to work from.
Sure I can setup aliases in my Zsh config file like I’ve done already and while it works it’s not quite as elegant.
| Host forum HostName www.mybroadband.co.za ProxyJump my_user@my_jumhost.com:22 User bob |
Call me old school, but you shouldn't be saving passwords - and you should be using keys (unless you're referring to the RDP bits),
Mobax is useful in the fact that it easily allows people to tunnel, forward x11 etc - but really it's overkill for something as simple as this.
Personally i'd just set a ssh "~/.ssh/config" file and add my hosts to that - so I can simply connect with a little one liner later - eg:
Host forum
HostName www.mybroadband.co.za
ProxyJump my_user@my_jumhost.com:22
User bob
$ ssh forum
what is the best ssh manager for linux?
is there anything like moba or iterm?