Skip to content

Commit

Permalink
New content
Browse files Browse the repository at this point in the history
  • Loading branch information
vorakl committed Jan 19, 2024
1 parent 25cd003 commit d3bebe0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion articles/udp-link/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
HostbasedAuthentication no
SendEnv no
</pre></div> <p>and then to connect I just run</p> <div class=highlight><pre><span></span>ssh some-server
</pre></div> <p>The second <strong>Host some-IP</strong> block is needed to provide a correct ssh key to a temporary ssh connection (without <em>ProxyCommand</em>) that <em>udp-link</em> establishes at the beginning of a new session. To debug the connection add <em>--debug</em> option</p> <div class=highlight><pre><span></span>ssh -o <span class=nv>ProxyCommand</span><span class=o>=</span><span class=s2>&quot;udp-link --dump some-IP&quot;</span> some-server
</pre></div> <p>The second <strong>Host some-IP</strong> block is needed to provide a correct ssh key to a temporary ssh connection (without <em>ProxyCommand</em>) that <em>udp-link</em> establishes at the beginning of a new session. To debug the connection add <em>--debug</em> option</p> <div class=highlight><pre><span></span>ssh -o <span class=nv>ProxyCommand</span><span class=o>=</span><span class=s2>&quot;udp-link --debug some-IP&quot;</span> some-server
</pre></div> <p>If I need to bind a connection to a specific UDP port on the server side, I initiate a connection like this</p> <div class=highlight><pre><span></span>ssh -o <span class=nv>ProxyCommand</span><span class=o>=</span><span class=s2>&quot;udp-link -b 1234 some-IP&quot;</span> some-server
</pre></div> <p>You can also bind it to a privileged port (1-1024), but <em>udp-link</em> needs root permissions to do this, which can be achieved in a number of ways, such as making it root-owned with the setuid bit turned on on the server-side copy of a binary file.</p> <div class=highlight><pre><span></span>chown root /usr/local/bin/udp-link
chmod u+s /usr/local/bin/udp-link
Expand Down
2 changes: 1 addition & 1 deletion atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Host *
&lt;p&gt;The second &lt;strong&gt;Host some-IP&lt;/strong&gt; block is needed to provide a correct ssh key to
a temporary ssh connection (without &lt;em&gt;ProxyCommand&lt;/em&gt;) that &lt;em&gt;udp-link&lt;/em&gt; establishes
at the beginning of a new session. To debug the connection add &lt;em&gt;--debug&lt;/em&gt; option&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;ssh -o &lt;span class="nv"&gt;ProxyCommand&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;udp-link --dump some-IP&amp;quot;&lt;/span&gt; some-server
&lt;div class="highlight"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;ssh -o &lt;span class="nv"&gt;ProxyCommand&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;&amp;quot;udp-link --debug some-IP&amp;quot;&lt;/span&gt; some-server
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;If I need to bind a connection to a specific UDP port on the server side,
I initiate a connection like this&lt;/p&gt;
Expand Down
2 changes: 1 addition & 1 deletion src.docs/content/articles/udp-link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ at the beginning of a new session. To debug the connection add *--debug* option

.. code-block:: shell
ssh -o ProxyCommand="udp-link --dump some-IP" some-server
ssh -o ProxyCommand="udp-link --debug some-IP" some-server
If I need to bind a connection to a specific UDP port on the server side,
I initiate a connection like this
Expand Down

0 comments on commit d3bebe0

Please sign in to comment.