{"id":64,"date":"2014-04-02T12:05:02","date_gmt":"2014-04-02T10:05:02","guid":{"rendered":"http:\/\/www.ritter.cc\/?page_id=64"},"modified":"2014-04-02T12:07:36","modified_gmt":"2014-04-02T10:07:36","slug":"dateien-mit-ssh-scp-kopieren","status":"publish","type":"page","link":"https:\/\/www.ritter.cc\/?page_id=64","title":{"rendered":"Dateien mit SSH \/ SCP Kopieren"},"content":{"rendered":"<div>\n<h3>OS : RHEL6(clone)<\/h3>\n<h3><span style=\"font-size: 14px; line-height: 1.5em;\">The following requirements must be met on both server and client:<\/span><\/h3>\n<\/div>\n<div>\n<ol type=\"1\">\n<li>Make sure hostnames of IP addresses of both server and client are known across the network. Each hostname needs to be listed in\u00a0<code>\/etc\/hosts<\/code>, for both server and client (see Section\u00a0\u201c\u00a0<code>\/etc\/hosts<\/code>\u00a0\u201d (Chapter\u00a021,\u00a0<i>Basic Networking<\/i>, \u2191Reference).)<\/li>\n<li>If you use a firewall, open the SSH port. Start YaST, and select\u00a0Security and Users+Firewall. Go to\u00a0Allowed Services\u00a0and check, whether\u00a0SSH\u00a0is displayed as part of the list. If this is not the case, select SSH from\u00a0Service to Allow\u00a0and click\u00a0Add. Apply your changes and leave YaST with\u00a0Next\u00a0and\u00a0Accept.<\/li>\n<\/ol>\n<\/div>\n<p>To copy files from a server to a client, you need to know where the files are located on the server. For example, to copy a single file\u00a0<code>\/srv\/foo_file<\/code>\u00a0from the server to the current directory, use the\u00a0<strong>scp<\/strong>\u00a0command (do not forget the dot!):<\/p>\n<pre>scp tux@sun.example.com:\/foo_file .<\/pre>\n<p>To copy a whole directory structure, use the recursive mode of\u00a0<strong>scp<\/strong>:<\/p>\n<pre>scp -r tux@sun.example.com:\/foo_directory .<\/pre>\n<p>If your network does not provide name resolution, use the server&#8217;s IP address directly:<\/p>\n<pre>scp tux@192.168.0.20:\/foo_file .<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>OS : RHEL6(clone) The following requirements must be met on both server and client: Make sure hostnames of IP addresses<\/p>\n<p><a href=\"https:\/\/www.ritter.cc\/?page_id=64\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Dateien mit SSH \/ SCP Kopieren<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":52,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ngg_post_thumbnail":0,"footnotes":""},"class_list":["post-64","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/64","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=64"}],"version-history":[{"count":2,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/64\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/64\/revisions\/67"}],"up":[{"embeddable":true,"href":"https:\/\/www.ritter.cc\/index.php?rest_route=\/wp\/v2\/pages\/52"}],"wp:attachment":[{"href":"https:\/\/www.ritter.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=64"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}