Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Python

Reverse ssh tunnel

1
2
3
4
5
6
# Reverse ssh tunnel:
# Host to access -> destination.host.net ; user=dest_user
dest_user@destination.host.net$ ssh -R 22000:localhost:22 -f -N src_user@source.host.net
 
# Source host    -> source.host.net      ; user=src_user
src_user@source.host.net$ ssh -p 22000 dest_user@localhost
https://snipt.net/embed/495effb16259fb9061487ecf1c583d42/
https://snipt.net/raw/495effb16259fb9061487ecf1c583d42/
495effb16259fb9061487ecf1c583d42
python
Python
7
2016-12-09T19:04:05
True
False
False
/api/public/snipt/21956/
reverse-ssh-tunnel-1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># Reverse ssh tunnel:</span> </span><span id="L-2"><a name="L-2"></a><span class="c1"># Host to access -&gt; destination.host.net ; user=dest_user</span> </span><span id="L-3"><a name="L-3"></a><span class="n">dest_user</span><span class="nd">@destination.host.net</span><span class="err">$</span> <span class="n">ssh</span> <span class="o">-</span><span class="n">R</span> <span class="mi">22000</span><span class="p">:</span><span class="n">localhost</span><span class="p">:</span><span class="mi">22</span> <span class="o">-</span><span class="n">f</span> <span class="o">-</span><span class="n">N</span> <span class="n">src_user</span><span class="nd">@source.host.net</span> </span><span id="L-4"><a name="L-4"></a> </span><span id="L-5"><a name="L-5"></a><span class="c1"># Source host -&gt; source.host.net ; user=src_user</span> </span><span id="L-6"><a name="L-6"></a><span class="n">src_user</span><span class="nd">@source.host.net</span><span class="err">$</span> <span class="n">ssh</span> <span class="o">-</span><span class="n">p</span> <span class="mi">22000</span> <span class="n">dest_user</span><span class="nd">@localhost</span> </span></pre></div> </td></tr></table>
reverse, ssh, tunneling

Text only

scrolling marquee code

ul><li class="embedded_object_placeholder">To view this widget, please install <a rel="nofollow" href="http://userscripts.org/scripts/show/38500">EmbedWidgets</a> script</li><li style="display: none;" class="embedded_object">[marquee behavior="alternate"] This one's bouncing back and forth![/marquee]<br />
</li></ul>
https://snipt.net/embed/c083edf1ae4468a10f7f9d22b479ffb8/
https://snipt.net/raw/c083edf1ae4468a10f7f9d22b479ffb8/
c083edf1ae4468a10f7f9d22b479ffb8
text
Text only
4
2016-12-10T12:51:34
True
False
False
/api/public/snipt/1352/
scrolling-marquee-code-2
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>ul&gt;&lt;li class=&quot;embedded_object_placeholder&quot;&gt;To view this widget, please install &lt;a rel=&quot;nofollow&quot; href=&quot;http://userscripts.org/scripts/show/38500&quot;&gt;EmbedWidgets&lt;/a&gt; script&lt;/li&gt;&lt;li style=&quot;display: none;&quot; class=&quot;embedded_object&quot;&gt;[marquee behavior=&quot;alternate&quot;] This one&#39;s bouncing back and forth![/marquee]&lt;br /&gt; </span><span id="L-2"><a name="L-2"></a>&lt;/li&gt;&lt;/ul&gt; </span></pre></div> </td></tr></table>
loop, reverse
Copyrighted, illegal, or inappropriate content? Email [email protected].