Useful Snippets

Welcome!


This blog is used to collect useful snippets related to Linux, PHP, MySQL and more. Feel free to post comments with improvements or questions!

Are your smart devices spying on you? Make better purchasing choices and find products that respect your privacy at Unwanted.cloud

RSS Latest posts from my personal blog


Subscribe to RSS feed


Jumping to internal SSH server using Royal TS

Stanislav KhromovStanislav Khromov

It’s a farily common occurrence to have a server only accessible through another server. So I was happy that Royal TS provided an easy way of handling this via their “Key Sequence” setting.

The basic idea is that we first connect to our jump server (ip 1.1.1.1), then we setup a Key Sequence that writes an SSH command to get into the internal server (ip 1.1.1.2)

So this is what the resulting key sequence should look like:

{WAIT:5000}ssh user@1.1.1.2{ENTER}clear{ENTER}

This requires you to first allow passwordless logins, via ssh-copy-id.

A screenshot of a real example:

Full-stack impostor syndrome sufferer & Software Engineer at Schibsted Media Group

Comments 0
There are currently no comments.