Using SSH With Jumphost

Table of Contents

这就是你们 Windows 吗

OpenSSH ProxyJump

In one line:

ssh -J user@<jumpbox:port> <user@target:port>

In your ssh config:

# Your Linux jumpbox
Host Jumpbox
    HostName jumpbox.example.com
    User example

# Your target
Host Target
    HostName target.example.com
    User example
    ProxyJump Jumpbox

OpenSSH on Windows 10

我们无法使用 ProxyJump 命令。(什么你问我为什么?我也不知道的)

In your ssh config:

# Your Linux jumpbox
Host Jumpbox
    HostName jumpbox.example.com
    User example

# Your target
Host Target
    HostName target.example.com
    User example
    ProxyCommand C:\Windows\System32\OpenSSH\ssh.exe <Jumpbox Host's Name as in config or real hostname> nc %h %p

No need in Termius

Termius 界面

Nemo Xiong avatar
Nemo Xiong
我永远喜欢妃爱
comments powered by Disqus