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!

RSS Latest posts from my personal blog


Most viewed posts


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:

Web Developer at Aftonbladet (Schibsted Media Group)
Any opinions on this blog are my own and do not reflect the views of my employer.
LinkedIn
Twitter
WordPress.org Profile
Visit my other blog

Comments 0
There are currently no comments.