Useful Snippets

Useful Snippets


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

July 2020
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Categories


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:
royalts-jumping

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.