<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.umiacs.umd.edu/umiacs/index.php?action=history&amp;feed=atom&amp;title=SSH_Jumphosts</id>
	<title>SSH Jumphosts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.umiacs.umd.edu/umiacs/index.php?action=history&amp;feed=atom&amp;title=SSH_Jumphosts"/>
	<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH_Jumphosts&amp;action=history"/>
	<updated>2026-06-02T11:43:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH_Jumphosts&amp;diff=8690&amp;oldid=prev</id>
		<title>Gstewar1: Created page with &quot;Sometimes it is necessary to SSH through a host in order to access another host.  Although this can be done by manually SSH-ing from one host to another repeatedly, the same t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.umiacs.umd.edu/umiacs/index.php?title=SSH_Jumphosts&amp;diff=8690&amp;oldid=prev"/>
		<updated>2019-12-02T15:29:30Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sometimes it is necessary to SSH through a host in order to access another host.  Although this can be done by manually SSH-ing from one host to another repeatedly, the same t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sometimes it is necessary to SSH through a host in order to access another host.  Although this can be done by manually SSH-ing from one host to another repeatedly, the same task can be accomplished in one line by jumphosting. &lt;br /&gt;
&lt;br /&gt;
==Dynamic Jumphosts==&lt;br /&gt;
Dynamic jumphosts are most useful for times in which you only need to make this jump once, or rather infrequently. &lt;br /&gt;
&lt;br /&gt;
The basic format for jumphosting is&lt;br /&gt;
  ssh -J user1@host1:port1 user2@host2:port2&lt;br /&gt;
However, if ports are the same for different hosts, you can use the format&lt;br /&gt;
  ssh -J user1@host1 user2@host2&lt;br /&gt;
Also, if you need to jumphost through multiple hosts, the format below is also legal&lt;br /&gt;
  ssh -J user1@host1:port1,user2@host2:port2 user3@host3&lt;br /&gt;
&lt;br /&gt;
==Static Jumphosts==&lt;br /&gt;
Static jumphosts are most useful for times in which you will often need to make this jump, and allows you type a short, simple command instead of the longer line as shown in Dynamic Jumphosts section above. In order to create this shortcut, you must edit your ~/.ssh/config file. &lt;br /&gt;
&lt;br /&gt;
===Setup===&lt;br /&gt;
In your ~/.ssh/config file&lt;br /&gt;
   Host directJump&lt;br /&gt;
      HostName mydirectjump.example.org&lt;br /&gt;
   &lt;br /&gt;
   Host secondJump&lt;br /&gt;
      HostName mysecondjump.example.org&lt;br /&gt;
      ProxyJump directJump&lt;br /&gt;
If another jump is needed, the following format can be added as needed to the same ~/.ssh/config file &lt;br /&gt;
   Host finalJump&lt;br /&gt;
      HostName myfinaljump.example.org&lt;br /&gt;
      ProxyJump secondJump&lt;br /&gt;
&lt;br /&gt;
===Use===&lt;br /&gt;
After saving the above changes to your ~/.ssh/config file, if you wish to access that final host&lt;br /&gt;
   ssh finalJump&lt;/div&gt;</summary>
		<author><name>Gstewar1</name></author>
	</entry>
</feed>