<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ssh on it-grossniklaus.ch</title>
    <link>https://it-grossniklaus.ch/tags/ssh/</link>
    <description>Recent content in Ssh on it-grossniklaus.ch</description>
    <generator>Hugo</generator>
    <language>de</language>
    <atom:link href="https://it-grossniklaus.ch/tags/ssh/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Eigenen ssh Private Key auf Server installieren (authorized_keys)</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/authorized-key/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/authorized-key/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;falls anmelden via User/Passwort möglich:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cd $HOME&#xA;mkdir     .ssh&#xA;chmod 700 .ssh&#xA;cd        .ssh&#xA;cat  &gt;&gt; authorized_keys    # dann copy/paste Inhalt von eigenem id_rsa.pub&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Eigenen ssh Private Key erstellen (ssh-keygen)</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-create-key/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-create-key/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;</description>
    </item>
    <item>
      <title>Eintrag aus eigenem known_hosts entfernen</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-remove-entry/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-remove-entry/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;ssh-keygen -R example.com&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Filesytem via sftp mounten</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/sshfs-mount/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/sshfs-mount/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/sshfs/sshfs.1.en.html&#34;&gt;https://manpages.debian.org/testing/sshfs/sshfs.1.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/fuse/fusermount.1.en.html&#34;&gt;https://manpages.debian.org/testing/fuse/fusermount.1.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo apt-get install sshfs&#xA;sudo adduser your_user_name fuse&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;als normaler user&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;mkdir $HOME/sftp&#xA;sshfs user@remote.host.or.ip:/host/dir/to/mount $HOME/sftp&#xA;fusermount -u $HOME/sftp&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Passphrase des Keys ändern (ssh-keygen)</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-passphrase/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-keygen-passphrase/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cd $HOME/.ssh&#xA;ssh-keygen -f id_rsa -p&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>ssh</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/ssh/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/ssh/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;h3 id=&#34;bookmarks&#34;&gt;Bookmarks&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Tag: &lt;a href=&#34;https://it-grossniklaus.ch/tags/ssh/&#34;&gt;ssh&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;wikipedia&#34;&gt;Wikipedia&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://de.wikipedia.org/wiki/Secure_Shell&#34;&gt;Secure Shell&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://en.wikipedia.org/wiki/Secure_Shell&#34;&gt;Secure Shell&lt;/a&gt; (en)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h4 id=&#34;doku&#34;&gt;Doku&lt;/h4&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh.1.en.html&#34;&gt;ssh&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh_config.5.en.html&#34;&gt;ssh_config&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh-keygen.1.en.html&#34;&gt;ssh-keygen&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh-agent.1.en.html&#34;&gt;ssh-agent&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh-add.1.en.html&#34;&gt;ssh-add&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/scp.1.en.html&#34;&gt;scp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;man &lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/sftp.1.en.html&#34;&gt;sftp&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;download&#34;&gt;Download&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://gitforwindows.org/&#34;&gt;https://gitforwindows.org/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://de.wikipedia.org/wiki/PuTTY&#34;&gt;https://de.wikipedia.org/wiki/PuTTY&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;http://www.openssh.com&#34;&gt;OpenSSH&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;microsoft&#34;&gt;Microsoft&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://docs.microsoft.com/en-us/vsts/git/use-ssh-keys-to-authenticate&#34;&gt;https://docs.microsoft.com/en-us/vsts/git/use-ssh-keys-to-authenticate&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ssh-remoting-in-powershell-core&#34;&gt;https://docs.microsoft.com/en-us/powershell/scripting/core-powershell/ssh-remoting-in-powershell-core&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
    </item>
    <item>
      <title>ssh relevante Config</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-client-config/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-client-config/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/openssh-client/ssh_config.5.en.html&#34;&gt;https://manpages.debian.org/testing/openssh-client/ssh_config.5.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;$HOME/.ssh/config&lt;/code&gt;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Host *&#xA;    HashKnownHosts yes&#xA;    SendEnv LANG LC_*&#xA;&#xA;ServerAliveInterval=30&#xA;ServerAliveCountMax=10&#xA;TCPKeepAlive=yes&#xA;ConnectTimeout=30&#xA;&#xA;Host a_host_name&#xA;    HostName IP&#xA;    Port other_than_22&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;</description>
    </item>
    <item>
      <title>ssh Verbindungen bündeln (cssh)</title>
      <link>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/tools/cssh/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/os/linux/snippets/tools/cssh/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/clusterssh/clusterssh.1.en.html&#34;&gt;https://manpages.debian.org/testing/clusterssh/clusterssh.1.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/duncs/clusterssh&#34;&gt;https://github.com/duncs/clusterssh&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo apt-get install clusterssh&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;cssh -t&#34;-sb -rightbar&#34;  \&#xA;admin@example.com       \&#xA;admin@example.org&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>sshd relevante Config</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-server-config/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/ssh-server-config/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/openssh-server/sshd_config.5.en.html&#34;&gt;https://manpages.debian.org/testing/openssh-server/sshd_config.5.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;&lt;code&gt;/etc/ssh/sshd_config&lt;/code&gt;&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Authentication:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# soll mit Private Key (authorized_keys) als root verbunden werden dürfen?&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;PermitRootLogin without-password&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;TCPKeepAlive yes&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Allow client to pass locale environment variables&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;AcceptEnv LANG LC_*&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Traffic komplett über einen Proxy leiten</title>
      <link>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/sshuttle/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/tools/snippets/ssh/sshuttle/</guid>
      <description>&lt;!-- raw HTML omitted --&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/testing/sshuttle/sshuttle.1.en.html&#34;&gt;sshuttle.1.en.html&lt;/a&gt; &lt;em&gt;(manpages.debian.org)&lt;/em&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;debian-ab-stretch&#34;&gt;Debian ab stretch:&lt;/h2&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo apt-get install sshuttle&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;h2 id=&#34;sshuttle-selber-bauen&#34;&gt;sshuttle selber bauen&lt;/h2&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sudo apt-get install git&#xA;git clone git://github.com/sshuttle/sshuttle&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;./sshuttle -r Proxy_IP NETZ_zum_Umleiten&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;p&gt;Kontrolle&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;iptables -t nat -n -L&#xA;&lt;/pre&gt;&#xA;&lt;/p&gt;&#xA;&lt;h2 id=&#34;sshuttle-verwenden&#34;&gt;sshuttle verwenden&lt;/h2&gt;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;The most basic use of sshuttle looks like&#xA;0/0 is shortcut for 0.0.0.0/0&lt;/p&gt;&#xA;&lt;/blockquote&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;./sshuttle       -r username@sshserver 0/0 -vv&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;blockquote&gt;&#xA;&lt;p&gt;DNS queries to be proxied through the DNS server&#xA;of the server you are connect to&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
