mirror of
https://github.com/Brandon-Rozek/website.git
synced 2025-10-09 14:31:13 +00:00
Added blog posts
This commit is contained in:
parent
4305d8d5ca
commit
83d9c0e313
5 changed files with 127 additions and 0 deletions
28
content/blog/sshjump.md
Normal file
28
content/blog/sshjump.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
title: "SSH Jump"
|
||||
date: 2020-02-02T22:32:13-05:00
|
||||
draft: false
|
||||
images: []
|
||||
---
|
||||
|
||||
With ssh jump, we can ssh into a machine that we don't have direct access to through an intermediary.
|
||||
|
||||
Just chain the necessary hosts together with the following command:
|
||||
|
||||
```bash
|
||||
ssh -J host1 host2 host3 ...
|
||||
```
|
||||
|
||||
Where the last host is the one you wish to connect to at the end.
|
||||
|
||||
Luckily ssh config also supports this!
|
||||
|
||||
```
|
||||
Host host1
|
||||
HostName host1.example.com
|
||||
|
||||
Host host2
|
||||
HostName hidden.host1.example.com
|
||||
ProxyJump host1
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue