<?xml version="1.0" encoding="utf-8" ?>

<?xml-stylesheet type="text/xsl" href="/dirk/blog/templates/dirk/rss.xsl" media="screen" ?>
<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Dirks Logbuch (Artikel mit Tag ssh)</title>
    <link>https://www.deimeke.net/dirk/blog/</link>
    <description>Die Chronik des schleichenden Wahnsinns ...</description>
    <dc:language>de</dc:language>
    <generator>Serendipity 2.6.0 - http://www.s9y.org/</generator>
    <pubDate>Tue, 06 Jan 2015 08:43:41 GMT</pubDate>

    <image>
    <url>https://www.deimeke.net/dirk/blog/uploads/dd-logo-100-transparent-ohne.png</url>
    <title>RSS: Dirks Logbuch - Die Chronik des schleichenden Wahnsinns ...</title>
    <link>https://www.deimeke.net/dirk/blog/</link>
    <width>72</width>
    <height>34</height>
</image>

<item>
    <title>Git-Server auf CentOS ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/3473-Git-Server-auf-CentOS-....html</link>
            <category>centos</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/3473-Git-Server-auf-CentOS-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=3473</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=3473</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Eigentlich ist &quot;Git-Server&quot; etwas hoch gegriffen, da als Server-Komponente SSH zum Einsatz kommt. Nichtsdestowenigertrotz ist das Endergebnis ein Git-Repository-Server, den man sehr bequem nutzen kann.&lt;br /&gt;
&lt;br /&gt;
Für den Server habe ich einen User &lt;code&gt;git&lt;/code&gt; (UserID 600) angelegt, mit dem die Repositories verwaltet werden sollen und das Homeverzeichnis soll unter &lt;code&gt;/srv/git&lt;/code&gt; liegen:&lt;br /&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;groupadd &lt;span style=&quot;color: #660033;&quot;&gt;-g&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;600&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt;&lt;br /&gt;useradd &lt;span style=&quot;color: #660033;&quot;&gt;-u&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;600&lt;/span&gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;\&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #660033;&quot;&gt;-g&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;600&lt;/span&gt; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;\&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #660033;&quot;&gt;-d&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;srv&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt; &amp;#160; &amp;#160; \&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #660033;&quot;&gt;-m&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-s&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;bash&lt;/span&gt; \&lt;br /&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Eine Besonderheit unter CentOS ist, dass dort &lt;a href=&quot;http://selinuxproject.org/page/Main_Page&quot;&gt;SELinux&lt;/a&gt; läuft und wir dem System bekanntgeben müssen, dass es sich bei &lt;code&gt;/srv/git&lt;/code&gt; um ein Homeverzeichnis handelt. Die einfachste Methode ist, den Kontext eines bestehenden Homeverzeichnisses auf das neue Verzeichnis zu übertragen.&lt;br /&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;semanage fcontext &lt;span style=&quot;color: #660033;&quot;&gt;-a&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-e&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dirk &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;srv&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt;&lt;br /&gt;restorecon &lt;span style=&quot;color: #660033;&quot;&gt;-R&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-v&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;srv&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ls&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-Zd&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;srv&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
Zu SELinux gibt es reichlich Dokumentation, ich verweise hier einmal auf den &lt;a href=&quot;https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/SELinux_Users_and_Administrators_Guide/&quot;&gt;SELinux User&#039;s and Administrator&#039;s Guide&lt;/a&gt; bei RedHat. SELinux kann man auch abschalten, wenn einem der Aufwand zu hoch ist.&lt;br /&gt;
&lt;br /&gt;
Der Rest ist relativ einfach und geht strikt nach der &lt;a href=&quot;https://github.com/sitaramc/gitolite&quot;&gt;gitolite&lt;/a&gt;-Anleitung.&lt;br /&gt;
&lt;br /&gt;
Den eigenen Public-Key (wird benötigt, um gitolite zu verwalten) in das Verzeichnis &lt;code&gt;/srv/git&lt;/code&gt; kopieren, für mich hat sich dafür das Format &lt;code&gt;user-host.pub&lt;/code&gt; bewährt (ich habe auf jedem Host einen separaten SSH-Key und nutze nicht überall den gleichen).&lt;br /&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git clone&lt;/span&gt; git:&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;//&lt;/span&gt;github.com&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;sitaramc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;gitolite&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-p&lt;/span&gt; &lt;span style=&quot;color: #800000;&quot;&gt;${HOME}&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;br /&gt;gitolite&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-to&lt;/span&gt; &lt;span style=&quot;color: #800000;&quot;&gt;${HOME}&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;export&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;PATH&lt;/span&gt;=&lt;span style=&quot;color: #800000;&quot;&gt;${HOME}&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin:&lt;span style=&quot;color: #800000;&quot;&gt;${PATH}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;PATH=${HOME}/bin:${PATH}&#039;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #800000;&quot;&gt;${HOME}&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.bashrc&lt;br /&gt;gitolite setup &lt;span style=&quot;color: #660033;&quot;&gt;-pk&lt;/span&gt; user-host.pub&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Fertig!&lt;br /&gt;
&lt;br /&gt;
Die restliche Konfiguration läuft über das admin-Repository, das man auschecken muss und dann bearbeitet. Die neue Konfiguration ist direkt nach einem &lt;code&gt;git push&lt;/code&gt; aktiv.&lt;br /&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git clone&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;git&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;host:gitolite-admin.git gitolite-admin-host.git&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
Dort finden sich im &lt;code&gt;keydir&lt;/code&gt;-Verzeichnis alle Public Keys von Usern, die Zugriff auf irgendeines der Repositories haben sollen und im Verzeichnis &lt;code&gt;conf&lt;/code&gt; liegt die &lt;code&gt;gitolite.conf&lt;/code&gt; mit einem Beispiel-Repository.&lt;br /&gt;
&lt;br /&gt;
Viel Spass!&lt;img src=&quot;https://ssl-vg03.met.vgwort.de/na/1644d9430d4d4f918ecebe6e91eaf308&quot; width=&quot;1&quot; height=&quot;1&quot; alt=&quot;&quot;&gt; 
    </content:encoded>

    <pubDate>Tue, 06 Jan 2015 06:31:00 +0100</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/3473-guid.html</guid>
    <category>centos</category>
<category>git</category>
<category>osbn</category>
<category>ssh</category>

</item>
<item>
    <title>Screen ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/1408-Screen-....html</link>
            <category>linux</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/1408-Screen-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=1408</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=1408</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Ach ja, nur um es dokumentiert zu haben, ich nutze einen zentralen Einstieg, um all die Systeme zu verwalten auf die ich Zugriff habe.&lt;br /&gt;
&lt;br /&gt;
Dafür ist das Programm &lt;a href=&quot;http://de.wikipedia.org/wiki/GNU_Screen&quot;&gt;Screen&lt;/a&gt; ganz hervorragend geeignet. Zusammen mit &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/871-Tipparbeit-sparen-bei-ssh-....html&quot;&gt;Tipparbeit sparen&lt;/a&gt; baut mir die folgende Konfigurationsdatei aus dem &lt;a href=&quot;http://linuxwiki.de/screen&quot;&gt;Linuxwiki&lt;/a&gt; namens &lt;tt&gt;screenrc&lt;/tt&gt; mittels &lt;tt&gt;screen -c screenrc&lt;/tt&gt; meine Arbeitsumgebung zusammen. Dazu bitte unbedingt &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/863-ssh-agent-einsetzen-....html&quot;&gt;ssh-agent einsetzen&lt;/a&gt;.&lt;br /&gt;
&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# screen -RD -c screenrc&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# screen -ls&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# screen -rx &amp;lt;session&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;#&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Tabs&lt;/span&gt;&lt;br /&gt;caption always &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;%{kw}%-w%{ky}%n %t%{-}%+w %=%{bw}@%H%{kw} %D %Y-%m-%d %c&amp;quot;&lt;/span&gt;&lt;br /&gt;hardstatus string &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;[%H]&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Alt-PageUp/Down and Alt-left/right&lt;/span&gt;&lt;br /&gt;bindkey ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;5&lt;/span&gt;~ prev&lt;br /&gt;bindkey ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;6&lt;/span&gt;~ next&lt;br /&gt;bindkey ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;OD prev&lt;br /&gt;bindkey ^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;^&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt;OC next&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Ctrl-Shift-T&lt;/span&gt;&lt;br /&gt;bindkey ^T &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Scrollen im xterm&lt;/span&gt;&lt;br /&gt;termcapinfo xterm&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;xterms&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;xs&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;rxvt ti&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;:te&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# Detach mit logout&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;bind&lt;/span&gt; d&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;bind&lt;/span&gt; d pow_detach&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;bind&lt;/span&gt; ^d pow_detach&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# jetzt kommen die Sessions&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-t&lt;/span&gt; rechner01 &amp;#160;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ssh&lt;/span&gt; rechner01 &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# &amp;#160; 0&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;screen&lt;/span&gt; &lt;span style=&quot;color: #660033;&quot;&gt;-t&lt;/span&gt; rechner99 &amp;#160;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;ssh&lt;/span&gt; rechner99 &lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# &amp;#160;98&lt;/span&gt;&lt;br /&gt;&amp;#160;&lt;/div&gt; 
    </content:encoded>

    <pubDate>Wed, 10 Dec 2008 15:21:00 +0100</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/1408-guid.html</guid>
    <category>linux</category>
<category>ssh</category>

</item>
<item>
    <title>Tipps und Tricks mit ssh ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/894-Tipps-und-Tricks-mit-ssh-....html</link>
            <category>computer</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/894-Tipps-und-Tricks-mit-ssh-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=894</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=894</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Dies ist der letzter Teil der Kurzreihe über ssh. Kurz angerissen habe ich &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/861-ssh-Authentifizierung-mit-Schluessel-....html&quot;&gt;ssh-Authentifizierung mit Schlüssel&lt;/a&gt;, &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/863-ssh-agent-einsetzen-....html&quot;&gt;ssh-agent einsetzen&lt;/a&gt; und &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/871-Tipparbeit-sparen-bei-ssh-....html&quot;&gt;Tipparbeit sparen bei ssh&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Hier soll es jetzt um Tipps und Tricks rund um SSH gehen.&lt;br /&gt;
&lt;br /&gt;
Mit &quot;ssh -X user@zielrechner&quot; kann man sich - bei entsprechend eingerichteter Gegenstelle und einem lokal laufenden X-Server - die Fenster grafischer Anzeigen lokal ansehen.&lt;br /&gt;
&lt;br /&gt;
Bei &lt;a href=&quot;http://www.chiark.greenend.org.uk/~sgtatham/putty/&quot;&gt;Putty&lt;/a&gt; kann unter Connection / SSH / X11 mit &quot;Enable X11 forwarding&quot; das gleiche wie unter Linux / Unix mit &quot;ssh -X ...&quot; erreicht werden.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.straightrunning.com/XmingNotes/&quot;&gt;XMing&lt;/a&gt; ist ein freier grafischer X-Server für Windows.&lt;br /&gt;
&lt;br /&gt;
ssh fungiert als Filter. Ein &#039;cat datei | ssh user@zielrechner &quot;grep suchbegriff&quot; | less&#039; überträgt die Datei auf den Zielrechner, führt dort das grep aus und gibt die Ergebnisse an das lokal laufende less weiter.&lt;br /&gt;
&lt;br /&gt;
&#039;tar cf - daten | buffer -m 10m | ssh user@zielrechner &quot;cd ziel &amp;&amp;amp; tar xf -&quot;&#039;&lt;br /&gt;
kopiert ziemlich schnell viele kleine Dateien und/oder Verzeichnisse. 
    </content:encoded>

    <pubDate>Thu, 15 Nov 2007 08:34:00 +0100</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/894-guid.html</guid>
    <category>computer</category>
<category>ssh</category>

</item>
<item>
    <title>Tipparbeit sparen bei ssh ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/871-Tipparbeit-sparen-bei-ssh-....html</link>
            <category>computer</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/871-Tipparbeit-sparen-bei-ssh-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=871</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=871</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Unterhalb des eigenen Homeverzeichnis, im Unterverzeichnis .ssh kann man eine config-Datei (~/.ssh/config) pflegen, die eine Menge Tipparbeit ersparen kann.&lt;br /&gt;
&lt;br /&gt;
In diese config-Datei können alle &lt;a href=&quot;http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&quot;&gt;ssh-Optionen&lt;/a&gt; einfließen.&lt;br /&gt;
&lt;br /&gt;
Der Aufbau ist ganz einfach:&lt;br /&gt;
&lt;pre&gt;Host tisch
  HostName maschine.domain.tld
  User user2
  Port 443&lt;/pre&gt;&lt;br /&gt;
Wenn ich mit dieser Config-Datei eine Verbindung mittels &quot;ssh tisch&quot; aufbaue, werden die Einstellungen aus der Config-Datei genommen. Es wird also eine Verbindung als User user2 zum Rechner maschine.domain.tld über Port 443 aufgebaut, also analog &quot;ssh -p 443 user2@maschine.domain.tld&quot;. Da finde ich &quot;ssh tisch&quot; kürzer.&lt;br /&gt;
&lt;br /&gt;
Ein weiterer Eintrag&lt;br /&gt;
&lt;pre&gt;Host stuhl
  HostName maschine.domain.tld
  User user99
  Port 443&lt;/pre&gt;&lt;br /&gt;
würde beispielweise bei &quot;ssh stuhl&quot; analog eine Verbindung mit den gleichen Einstellungen als User &quot;user99&quot; aufbauen.&lt;br /&gt;
&lt;br /&gt;
Die Einstellungen greifen auch beim Kopieren von Daten. &quot;scp datei tisch:/tmp&quot; kopiert &quot;datei&quot; nach &quot;/tmp&quot; auf &quot;maschine.domain.tld&quot;.&lt;br /&gt;
&lt;br /&gt;
Einen habe ich noch.&lt;br /&gt;
&lt;br /&gt;
Um das ganze konsistent zu machen, kann man sich noch entsprechende Aliases anlegen. &quot;alias tisch=&#039;ssh tisch&#039;&quot;, dann kann mittels &quot;tisch befehl&quot;, der Befehl mit den Einstellungen aus der config auf maschine.domain.tld ausgeführt werden.&lt;br /&gt;
&lt;br /&gt;
Ausprobieren!&lt;br /&gt;
&lt;br /&gt;
Der &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/861-ssh-Authentifizierung-mit-Schluessel-....html&quot;&gt;erste Teil&lt;/a&gt; und der &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/863-ssh-agent-einsetzen-....html&quot;&gt;zweite Teil&lt;/a&gt; existieren natürlich auch noch. 
    </content:encoded>

    <pubDate>Wed, 24 Oct 2007 07:42:18 +0200</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/871-guid.html</guid>
    <category>computer</category>
<category>ssh</category>

</item>
<item>
    <title>ssh-agent einsetzen ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/863-ssh-agent-einsetzen-....html</link>
            <category>computer</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/863-ssh-agent-einsetzen-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=863</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=863</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Wenn man sich die Tipparbeit sparen möchte, immer die Passphrase einzutippen oder wenn man verschiedene Schlüssel für verschiedene Zielrechner verwendet, sollte ssh-agent zum Einsatz kommen.&lt;br /&gt;
&lt;br /&gt;
In der aktuellen Shell wird ssh-agent mit dem Kommando&lt;br /&gt;
&lt;tt&gt;eval $(ssh-agent)&lt;/tt&gt;&lt;br /&gt;
gestartet.&lt;br /&gt;
&lt;br /&gt;
Einen Schlüssel kann man mit dem Kommando&lt;br /&gt;
&lt;tt&gt;ssh-add &amp;lt;secretKeyFile&amp;gt;&lt;/tt&gt;&lt;br /&gt;
hinzufügen. Sollte Der Schlüssel eine Passphrase benötigen, wird diese abgefragt.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;!!! ssh-add fügt nur Schlüssel hinzu, die ausschließlich vom Benutzer lesbar sind. !!!&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Wenn ssh-add ohne Parameter aufgerufen wird, werden automatisch die Standard-Identitäten (~/.ssh/identity, ~/.ssh/id_dsa, ~/.ssh/id_rsa) hinzugefügt. Solltet Ihr noch eine identity-Datei haben (gehört zur Protokoll-Version 1), stellt das bitte schleunigst auf Protokoll-Version 2, auch auf dem Server, um.&lt;br /&gt;
&lt;br /&gt;
Bei einer Standard-Ubuntu-Client-(mit Desktop)-Installation, wird automatisch ein ssh-agent mitgestartet.&lt;br /&gt;
&lt;br /&gt;
ssh-agent kann noch ein paar Dinge mehr, die aber hier den Rahmen sprengen würden.&lt;br /&gt;
&lt;br /&gt;
Das war der zweite Teil, des ssh-Ausflugs, der erste ist &lt;a href=&quot;http://www.deimeke.net/dirk/blog/index.php?/archives/861-ssh-Authentifizierung-mit-Schluessel-....html&quot;&gt;hier&lt;/a&gt; zu finden. 
    </content:encoded>

    <pubDate>Wed, 17 Oct 2007 13:23:34 +0200</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/863-guid.html</guid>
    <category>computer</category>
<category>ssh</category>

</item>
<item>
    <title>ssh-Authentifizierung mit Schlüssel ...</title>
    <link>https://www.deimeke.net/dirk/blog/index.php?/archives/861-ssh-Authentifizierung-mit-Schluessel-....html</link>
            <category>computer</category>
    
    <comments>https://www.deimeke.net/dirk/blog/index.php?/archives/861-ssh-Authentifizierung-mit-Schluessel-....html#comments</comments>
    <wfw:comment>https://www.deimeke.net/dirk/blog/wfwcomment.php?cid=861</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>https://www.deimeke.net/dirk/blog/rss.php?version=2.0&amp;type=comments&amp;cid=861</wfw:commentRss>
    

    <author>nospam@example.com (Dirk Deimeke)</author>
    <content:encoded>
    Da ich schon sehr häufig danach gefragt wurde, gibt es jetzt einen Kurzkurs zu ssh aus Sicht des Clients.&lt;br /&gt;
&lt;br /&gt;
Um sich bei einer ssh-Verbindung mit einem Schlüssel und nicht mit dem Passwort zu authentifizieren, muß man sich mittels&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;ssh-keygen&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
einen Schlüssel erzeugen. Man kann mit dem Parameter -t noch den Typ des Schlüssels (dsa oder rsa) angeben, beide Verfahren gelten als ähnlich sicher. Dabei wird ein öffentlicher Teil (mit Endung .pub) und ein geheimer Teil (ohne Endung) erzeugt. Gibt man keine anderen Dateinamen an, heißen die Dateien entweder id_rsa (geheimer Teil) und id_rsa.pub (öffentlich) oder id_dsa (geheimer Teil) und id_dsa.pub (öffentlicher Teil).&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;!!! Bitte &lt;u&gt;nie&lt;/u&gt; den geheimen Teil weitergeben !!!&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Der öffentliche Teil des Schlüssels muss jetzt noch auf den Zielrechner übertragen werden, das geht mit&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;ssh-copy-id -i ~/.ssh/id_rsa.pub &amp;lt;user&amp;gt;@&amp;lt;zielrechner&amp;gt;&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
und funktioniert analog mit einem dsa-Schlüssel, für &amp;lt;user&amp;gt; muss der Username und für &amp;lt;zielrechner&amp;gt; die Adresse des Zielrechners angegeben werden.&lt;br /&gt;
&lt;br /&gt;
Wenn alles geklappt hat, funktioniert ein&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;ssh &amp;lt;user&amp;gt;@&amp;lt;zielrechner&amp;gt;&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
nach Eingabe der Passphrase, die für den Schlüssel definiert wurde.&lt;br /&gt;
&lt;br /&gt;
Die Passphrase kann mit&lt;br /&gt;
&lt;br /&gt;
&lt;tt&gt;ssh-keygen -p&lt;/tt&gt;&lt;br /&gt;
&lt;br /&gt;
geändert werden&lt;br /&gt;
&lt;br /&gt;
Weitere geplante Folgen:&lt;br /&gt;
- ssh-agent einsetzen&lt;br /&gt;
- Tipparbeit sparen bei ssh&lt;br /&gt;
- Tipps für die Verwendung von ssh 
    </content:encoded>

    <pubDate>Mon, 15 Oct 2007 10:08:25 +0200</pubDate>
    <guid isPermaLink="false">https://www.deimeke.net/dirk/blog/index.php?/archives/861-guid.html</guid>
    <category>computer</category>
<category>ssh</category>

</item>

</channel>
</rss>
