Comments on: How to Connect Remote Linux via SSH ProxyJump and ProxyCommand https://www.tecmint.com/ssh-proxyjump-and-ssh-proxycommand/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 27 Sep 2023 07:39:08 +0000 hourly 1 By: Ravi Saive https://www.tecmint.com/ssh-proxyjump-and-ssh-proxycommand/comment-page-1/#comment-2083226 Wed, 27 Sep 2023 07:39:08 +0000 https://www.tecmint.com/?p=48923#comment-2083226 In reply to Mike.

@Mike,

You’re right, the example provided in the .ssh/config file for proxy hosts might not be complete for all scenarios. To tie everything together and set up the proxy correctly, you can indeed use the ProxyJump statement.

Here’s how you can modify the example for better clarity:

Host proxy-host
  HostName proxy.example.com
  User your-username
  Port 22
  IdentityFile ~/.ssh/your-identity-file

Host target-host
  HostName target.example.com
  User your-username
  Port 22
  IdentityFile ~/.ssh/your-identity-file
  ProxyJump proxy-host

In this modified example, we’ve created two separate host configurations: one for the proxy host (proxy-host) and one for the target host (target-host). The ProxyJump statement in the target-host configuration specifies that you should use the proxy-host as a jump host to reach the target-host.

This configuration ensures that your SSH connection first goes through the proxy host to reach the target host. Make sure to replace proxy.example.com, target.example.com, your-username, and your-identity-file with the actual values you need for your setup.

Thank you for pointing out the need for clarification, and I hope this helps you set up your SSH connections effectively.

]]>
By: Mike https://www.tecmint.com/ssh-proxyjump-and-ssh-proxycommand/comment-page-1/#comment-2082992 Tue, 26 Sep 2023 16:47:02 +0000 https://www.tecmint.com/?p=48923#comment-2082992 The .ssh/config example for proxy hosts doesn’t look complete. How do they tie together? don’t you need a ProxyJump statement in the file?

]]>