{"id":439,"date":"2013-10-24T14:13:12","date_gmt":"2013-10-24T12:13:12","guid":{"rendered":"http:\/\/pclos.janu.hu\/?p=439"},"modified":"2013-10-24T14:13:12","modified_gmt":"2013-10-24T12:13:12","slug":"fajlok-biztonsagos-masolasa-helyi-gep-es-tarhely-kozott","status":"publish","type":"post","link":"http:\/\/pclos.janu.hu\/?p=439","title":{"rendered":"F\u00e1jlok biztons\u00e1gos m\u00e1sol\u00e1sa helyi g\u00e9p \u00e9s t\u00e1rhely k\u00f6z\u00f6tt"},"content":{"rendered":"<table border=\"0\">\n<tbody>\n<tr>\n<td>\n<p class=\"western\" style=\"margin-top: 0.56cm; margin-bottom: 0cm; text-align: center;\"><a title=\"PCLinuxOS Magazine 2012. September\" href=\"http:\/\/pclosmag.com\/html\/Issues\/201209\/links.html\" target=\"_blank\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>PCLinuxOS<\/b><\/span><\/span> <b>Magazine \u2013 2012. szeptember<\/b><\/a><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.3cm; text-align: center;\">Eredeti cikk: <a title=\"Secure Copy\" href=\"http:\/\/pclosmag.com\/html\/Issues\/201209\/page05.html\" target=\"_blank\">Copy Files Securely Between Local Machine &amp; Shell Account<\/a><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"western\" style=\"margin-bottom: 0.25cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">\u00cdrta: <b>AndrzejL<\/b><\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p class=\"western\" style=\"margin-bottom: 0cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">Mondjuk, legyen egy NAGYON fontos f\u00e1jl. Nevezz\u00fck example.txt-nek \u00e9s a home (~) k\u00f6nyvt\u00e1ramban tal\u00e1lhat\u00f3.<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-top=0.1cm; margin-bottom: 0.1cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>touch ~\/example.txt<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.15cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">M\u00e1solni szeretn\u00e9m a remotemachine.net-en a mylogin k\u00f6nyvt\u00e1ramba, de nem szeretn\u00e9m, hogy b\u00e1rki beleszagolhasson a tartalm\u00e1ba. A t\u00e1voli g\u00e9pen SSH-szerver fut. Erre a feladatra az SCP t\u00f6k\u00e9letes, titkos\u00edtott ssh-t haszn\u00e1l.<\/span><\/span><\/p>\n<p><!--more--><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><i>Hogyan haszn\u00e1ljam:<\/i><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.15cm; text-decoration: underline;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">Szintaxis:<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; margin-left: 40px;\"><span style=\"font-size: medium;\"><b>scp \/path\/to\/secret\/file.ext who@host:\/where\/to\/save\/<\/b><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; margin-left: 10px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">P\u00e9ld\u00e1ul:<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>scp ~\/example.txt mylogin@remotemachine.net:~<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><span style=\"text-decoration: underline;\">Eredm\u00e9ny<\/span>:<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>example.txt 100% 0 0.0KB\/s 00:00<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; text-decoration: underline;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">Ellen\u0151rz\u00e9s:<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm; margin-left: 10px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">Jelentkezz be a t\u00e1voli g\u00e9pre:<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.15cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>ssh -l mylogin remotemachine.net<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm; margin-left: 10px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">List\u00e1zd ki a f\u00e1jlt: <\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>ls ~\/example.txt<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm; margin-left: 10px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">\u00cdme!<\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.2cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>\/home\/mylogin\/example.txt<\/b><\/span><\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0cm;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\">Rem\u00e9lem hasznos volt.<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr style=\"margin-bottom: 0.2cm;\" \/>\n<p style=\"margin-bottom: 0.15cm;\"><span style=\"font-family: Helvetica; font-size: small;\">Eddig a cikk. Egy p\u00e1r apr\u00f3s\u00e1got a magyar szerkeszt\u0151 jog\u00e1n hozz\u00e1f\u0171zn\u00e9k:<\/span><\/p>\n<p style=\"margin-bottom: 0.2cm;\"><span style=\"font-family: Helvetica; font-size: small;\">Nem kell felt\u00e9tlen\u00fcl kitenni m\u00e1sol\u00e1skor a \u201e~\u201d jelet. Ha a g\u00e9p neve (\u00e9s a kett\u0151spont) ut\u00e1n nem \u00edrunk semmit, akkor a t\u00e1voli k\u00f6nyvt\u00e1r a bejelentkez\u00e9si mappa (a <em>home<\/em>) lesz. Ebb\u0151l ered\u0151en m\u00e1s ter\u00fcleteket is el lehet \u00e9rni \u2013 ha van hozz\u00e1f\u00e9r\u00e9si jogunk. \u00cdgy pl. a t\u00e1voli rendszer <em>passwd<\/em> f\u00e1jlj\u00e1t \u00edgy m\u00e1solhatjuk le:<\/span><\/p>\n<p style=\"margin-bottom: 0,2cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', sans-serif; font-size: medium;\"><b>scp mylogin@remotemachine.net:\/\/etc\/passwd<\/b> .<\/span><\/p>\n<p style=\"margin-bottom: 0,15cm;\"><span style=\"font-family: Helvetica; font-size: small;\">(A parancs v\u00e9g\u00e9n a \u201e.\u201d azt jelzi, hogy az aktu\u00e1lis [munka] k\u00f6nyvt\u00e1rba helyezze ugyanezen a n\u00e9ven.)<\/span><\/p>\n<p style=\"margin-bottom: 0,15cm;\"><span style=\"font-family: Helvetica; font-size: medium; color: #ff0000;\">Ez a p\u00e9lda is mutatja, milyen fontos a biztons\u00e1g, hiszen ilyen egyszer\u0171en lehet \u201eellopni\u201d fontos, a rendszer szempontj\u00e1b\u00f3l kritikus f\u00e1jlunkat!<\/span><\/p>\n<p style=\"margin-bottom: 0,15cm;\"><span style=\"font-family: Helvetica; font-size: small;\">Az is el\u00e9rhet\u0151, hogy a <i>scp<\/i> \u00e9s az <i>ssh<\/i> ne k\u00e9rjen jelsz\u00f3t, ennek ismertet\u00e9se azonban meghaladja a cikk kereteit. Jelenleg ford\u00edt\u00e1s alatt van egy, ezt a t\u00e9m\u00e1t taglal\u00f3, blog bejegyz\u00e9s.<\/span><\/p>\n<p style=\"margin-bottom: 0,15cm;\"><span style=\"font-family: Helvetica; font-size: small;\">Ahogy a t\u00e1voli g\u00e9p hivatkoz\u00e1sa er\u0151teljesen hasonl\u00edt a b\u00f6ng\u00e9sz\u0151 c\u00edmsor\u00e1ban haszn\u00e1latos kifejez\u00e9sre, \u00edgy a bejelentkez\u00e9s is hasonl\u00edt egy e-mail c\u00edmre. Ez nem csak az <em>scp<\/em> eset\u00e9n haszn\u00e1lhat\u00f3, hanem ugyan\u00edgy lehet az <em>ssh<\/em> parancsban is haszn\u00e1lni:<\/span><\/p>\n<p class=\"western\" style=\"margin-bottom: 0.15cm; margin-left: 40px;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: medium;\"><b>ssh mylogin@remotemachine.net<\/b><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0,15cm;\"><span style=\"font-family: Helvetica; font-size: small;\">Itt viszont nem lehet a g\u00e9p neve ut\u00e1n \u201e:\u201d!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PCLinuxOS Magazine \u2013 2012. szeptember Eredeti cikk: Copy Files Securely Between Local Machine &amp; Shell Account \u00cdrta: AndrzejL Mondjuk, legyen egy NAGYON fontos f\u00e1jl. Nevezz\u00fck example.txt-nek \u00e9s a home (~) k\u00f6nyvt\u00e1ramban tal\u00e1lhat\u00f3. touch ~\/example.txt M\u00e1solni szeretn\u00e9m a remotemachine.net-en a mylogin &hellip; <a href=\"http:\/\/pclos.janu.hu\/?p=439\">Egy kattint\u00e1s ide a folytat\u00e1shoz&#8230;. <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,9],"tags":[55,197,72,19],"class_list":["post-439","post","type-post","status-publish","format-standard","hentry","category-magazin","category-rendszer","tag-2012-magazin","tag-rendszer","tag-ssh","tag-terminal"],"_links":{"self":[{"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=439"}],"version-history":[{"count":1,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":440,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=\/wp\/v2\/posts\/439\/revisions\/440"}],"wp:attachment":[{"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pclos.janu.hu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}