This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ssh:tipsandtricks [2024/09/27 08:15] – [Example 2] jansen | ssh:tipsandtricks [2025/05/20 08:25] (current) – [Example 3] jansen | ||
---|---|---|---|
Line 23: | Line 23: | ||
==== Example 1 ==== | ==== Example 1 ==== | ||
- | Establish an SSH connection to a machine called < | + | Establish an SSH connection to a machine called < |
<code bash> | <code bash> | ||
- | ssh -o ProxyCommand=" | + | ssh -o ProxyCommand=" |
</ | </ | ||
Line 47: | Line 47: | ||
More recent versions of ssh (including ssh on MacOS) also have the option '' | More recent versions of ssh (including ssh on MacOS) also have the option '' | ||
<code bash> | <code bash> | ||
- | ssh -o ProxyJump=" | + | ssh -o ProxyJump=" |
+ | </code> | ||
+ | or if your ssh client has the '' | ||
+ | <code bash> | ||
+ | ssh -J username@ssh.strw.leidenuniv.nl username@SERVER.strw.leidenuniv.nl | ||
</ | </ | ||
+ | |||
And in the '' | And in the '' | ||
< | < | ||
# cat $HOME/ | # cat $HOME/ | ||
- | Host < | + | Host SERVER.strw.leidenuniv.nl |
| | ||
User username | User username | ||
</ | </ |