<!-- Matomo -->
<script>
  var _paq = window._paq = window._paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
      (function() {
	          var u="//analytics.wasya.co/";
		      _paq.push(['setTrackerUrl', u+'matomo.php']);
		      _paq.push(['setSiteId', '15']);
		          var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
		          g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
			    })();
    </script>
<!-- End Matomo Code -->
<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.wasya.co/index.php?action=history&amp;feed=atom&amp;title=Ssh</id>
		<title>Ssh - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.wasya.co/index.php?action=history&amp;feed=atom&amp;title=Ssh"/>
		<link rel="alternate" type="text/html" href="https://wiki.wasya.co/index.php?title=Ssh&amp;action=history"/>
		<updated>2026-04-17T13:56:06Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.0</generator>

	<entry>
		<id>https://wiki.wasya.co/index.php?title=Ssh&amp;diff=3315&amp;oldid=prev</id>
		<title>Piousbox at 02:24, 27 August 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.wasya.co/index.php?title=Ssh&amp;diff=3315&amp;oldid=prev"/>
				<updated>2025-08-27T02:24:31Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:24, 27 August 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;=== generate key ===&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;#160; ssh-keygen -t rsa -b 4096 -f ant_key -N &amp;quot;&amp;quot; -C &amp;quot;ant+ant_key@wasya.co&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== service ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== service ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Piousbox</name></author>	</entry>

	<entry>
		<id>https://wiki.wasya.co/index.php?title=Ssh&amp;diff=3153&amp;oldid=prev</id>
		<title>Piousbox: Created page with &quot;=== service ===    service ssh start  === Establish a simple ssh port forward ===  10.0.0.x is public, 10.0.1.x is private. Do:   sudo sysctl net.ipv4.ip_forward=1  sudo iptab...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.wasya.co/index.php?title=Ssh&amp;diff=3153&amp;oldid=prev"/>
				<updated>2024-09-29T19:12:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== service ===    service ssh start  === Establish a simple ssh port forward ===  10.0.0.x is public, 10.0.1.x is private. Do:   sudo sysctl net.ipv4.ip_forward=1  sudo iptab...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== service ===&lt;br /&gt;
&lt;br /&gt;
  service ssh start&lt;br /&gt;
&lt;br /&gt;
=== Establish a simple ssh port forward ===&lt;br /&gt;
&lt;br /&gt;
10.0.0.x is public, 10.0.1.x is private. Do:&lt;br /&gt;
&lt;br /&gt;
 sudo sysctl net.ipv4.ip_forward=1&lt;br /&gt;
 sudo iptables -t nat -A PREROUTING -p tcp -d 10.0.0.229 --dport 2270 -j DNAT --to-destination 10.0.1.224:22&lt;br /&gt;
 sudo iptables -t nat -A POSTROUTING -j MASQUERADE&lt;br /&gt;
&lt;br /&gt;
= trash =&lt;br /&gt;
=== Add ssh key to a server ===&lt;br /&gt;
 cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat &amp;gt;&amp;gt; .ssh/authorized_keys'&lt;br /&gt;
&lt;br /&gt;
=== Add identity to a server ===&lt;br /&gt;
 ssh-copy-id -i ~.ssh/key_name.pub user@host&lt;/div&gt;</summary>
		<author><name>Piousbox</name></author>	</entry>

	</feed>