{"id":41,"date":"2007-07-07T18:35:39","date_gmt":"2007-07-07T16:35:39","guid":{"rendered":"http:\/\/www.hermione.de\/blog\/?p=41"},"modified":"2009-03-08T15:33:02","modified_gmt":"2009-03-08T13:33:02","slug":"ssh","status":"publish","type":"post","link":"http:\/\/blog.hermione.de\/?p=41","title":{"rendered":"ssh"},"content":{"rendered":"<h4>portforwarding<\/h4>\n<p><em>ssh blarechner -L 8888:localhost:80<\/em><\/p>\n<h4>tataa<\/h4>\n<p><em>tar vcf &#8211; . | ssh polaris &#8222;cd \/sdb1\/ZZZ_christine &amp;&amp; tar xf &#8211; &#8222;<\/em><\/p>\n<h4>ssh ohne Passwort-Abfrage<\/h4>\n<p><em>ssh-keygen<\/em> =&gt; identity.pub identity<br \/>\n<em>scp identity.pub christine@woanders:.<br \/>\nssh woanders<br \/>\ncat identity.pub &gt;&gt; .ssh\/authorized_keys<br \/>\n<\/em><\/p>\n<h4>ssh-agent<\/h4>\n<p><em>ssh-add<\/em> fuegt dem ssh agent die Standard-Identitaetn hinzu (identity etc.)<br \/>\ndanach kann man auf alle hosts zugreifen, bei denen man seinen identity.pub key abgelegt hat<\/p>\n<table class=\"rosa\">\n<tr>\n<td>\n<strong>\/\/ .ssh\/config <\/strong><br \/>\nHost blablub<br \/>\nHostName www.hinzundkunz.com<br \/>\nPort 234<br \/>\n<strong>ForwardAgent yes<\/strong>\n<\/td>\n<\/tr>\n<\/table>\n<h4>Einen einzelnen Befehl per ssh zulassen<\/h4>\n<p><strong>Schl\u00fcssel erzeugen: <\/strong><em>ssh -keygen -trsa<\/em> =&gt; keyblub<br \/>\nprivater Schl\u00fcssel bekommt der Anwender<br \/>\n\u00f6ffentlicher Schl\u00fcssel kommt auf den Server nach .ssh\/authorized_keys<br \/>\n<strong>man sshd<\/strong> nachguggen :)<br \/>\n<em>command=&#8220;\/home\/christine\/bin\/blablub.sh&#8220;,no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [&#8230;]<\/em><br \/>\n<em>ssh www.remote-island.org -l christine -i privatekeyblub &lt; bla.jpg<\/em><\/p>\n<h4>sshfs<\/h4>\n<p><em>mkdir mountpoint<br \/>\nsshfs user@remote: mountpoint<br \/>\nfusermount -u mountpoint<br \/>\n<\/em><\/p>\n<h4>Links<\/h4>\n<ul>\n<li><a href=\"http:\/\/www.openssh.org\/de\/faq.html\">OpenSSH FAQ<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>portforwarding ssh blarechner -L 8888:localhost:80 tataa tar vcf &#8211; . | ssh polaris &#8222;cd \/sdb1\/ZZZ_christine &amp;&amp; tar xf &#8211; &#8222; ssh ohne Passwort-Abfrage ssh-keygen =&gt; identity.pub identity scp identity.pub christine@woanders:. ssh woanders cat identity.pub &gt;&gt; .ssh\/authorized_keys ssh-agent ssh-add fuegt dem ssh agent die Standard-Identitaetn hinzu (identity etc.) danach kann man auf alle hosts zugreifen, bei [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts\/41"}],"collection":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=41"}],"version-history":[{"count":0,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.hermione.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}