{"id":341,"date":"2019-10-21T19:53:28","date_gmt":"2019-10-21T17:53:28","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=341"},"modified":"2019-10-21T19:53:28","modified_gmt":"2019-10-21T17:53:28","slug":"org_scp","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=341","title":{"rendered":"SCP"},"content":{"rendered":"<p>SCP(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSD General Commands Manual\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SCP(1)<\/p>\n<p>NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>scp \u2014 secure copy (remote file copy program)<\/p>\n<p>SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]<br \/>\n[-l limit] [-o ssh_option] [-P port] [-S program]<br \/>\n[[user@]host1:]file1 &#8230; [[user@]host2:]file2<\/p>\n<p>DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>scp copies files between hosts on a network.\u00a0 It uses ssh(1) for data<br \/>\ntransfer, and uses the same authentication and provides the same secu\u2010<br \/>\nrity as ssh(1).\u00a0 scp will ask for passwords or passphrases if they are<br \/>\nneeded for authentication.<\/p>\n<p>File names may contain a user and host specification to indicate that<br \/>\nthe file is to be copied to\/from that host.\u00a0 Local file names can be<br \/>\nmade explicit using absolute or relative pathnames to avoid scp treat\u2010<br \/>\ning file names containing \u2018:\u2019 as host specifiers.\u00a0 Copies between two<br \/>\nremote hosts are also permitted.<\/p>\n<p>The options are as follows:<\/p>\n<p>-1\u00a0\u00a0\u00a0\u00a0\u00a0 Forces scp to use protocol 1.<\/p>\n<p>-2\u00a0\u00a0\u00a0\u00a0\u00a0 Forces scp to use protocol 2.<\/p>\n<p>-3\u00a0\u00a0\u00a0\u00a0\u00a0 Copies between two remote hosts are transferred through the<br \/>\nlocal host.\u00a0 Without this option the data is copied directly<br \/>\nbetween the two remote hosts.\u00a0 Note that this option disables<br \/>\nthe progress meter.<\/p>\n<p>-4\u00a0\u00a0\u00a0\u00a0\u00a0 Forces scp to use IPv4 addresses only.<\/p>\n<p>-6\u00a0\u00a0\u00a0\u00a0\u00a0 Forces scp to use IPv6 addresses only.<\/p>\n<p>-B\u00a0\u00a0\u00a0\u00a0\u00a0 Selects batch mode (prevents asking for passwords or<br \/>\npassphrases).<\/p>\n<p>-C\u00a0\u00a0\u00a0\u00a0\u00a0 Compression enable.\u00a0 Passes the -C flag to ssh(1) to enable<br \/>\ncompression.<\/p>\n<p>-c cipher<br \/>\nSelects the cipher to use for encrypting the data transfer.<br \/>\nThis option is directly passed to ssh(1).<\/p>\n<p>-F ssh_config<br \/>\nSpecifies an alternative per-user configuration file for ssh.<br \/>\nThis option is directly passed to ssh(1).<\/p>\n<p>-i identity_file<br \/>\nSelects the file from which the identity (private key) for pub\u2010<br \/>\nlic key authentication is read.\u00a0 This option is directly passed<br \/>\nto ssh(1).<\/p>\n<p>-l limit<br \/>\nLimits the used bandwidth, specified in Kbit\/s.<\/p>\n<p>-o ssh_option<br \/>\nCan be used to pass options to ssh in the format used in<br \/>\nssh_config(5).\u00a0 This is useful for specifying options for which<br \/>\nthere is no separate scp command-line flag.\u00a0 For full details<br \/>\nof the options listed below, and their possible values, see<br \/>\nssh_config(5).<\/p>\n<p>AddressFamily<br \/>\nBatchMode<br \/>\nBindAddress<br \/>\nCanonicalDomains<br \/>\nCanonicalizeFallbackLocal<br \/>\nCanonicalizeHostname<br \/>\nCanonicalizeMaxDots<br \/>\nCanonicalizePermittedCNAMEs<br \/>\nChallengeResponseAuthentication<br \/>\nCheckHostIP<br \/>\nCipher<br \/>\nCiphers<br \/>\nCompression<br \/>\nCompressionLevel<br \/>\nConnectionAttempts<br \/>\nConnectTimeout<br \/>\nControlMaster<br \/>\nControlPath<br \/>\nControlPersist<br \/>\nGlobalKnownHostsFile<br \/>\nGSSAPIAuthentication<br \/>\nGSSAPIDelegateCredentials<br \/>\nHashKnownHosts<br \/>\nHost<br \/>\nHostbasedAuthentication<br \/>\nHostKeyAlgorithms<br \/>\nHostKeyAlias<br \/>\nHostName<br \/>\nIdentityFile<br \/>\nIdentitiesOnly<br \/>\nIPQoS<br \/>\nKbdInteractiveAuthentication<br \/>\nKbdInteractiveDevices<br \/>\nKexAlgorithms<br \/>\nLogLevel<br \/>\nMACs<br \/>\nNoHostAuthenticationForLocalhost<br \/>\nNumberOfPasswordPrompts<br \/>\nPasswordAuthentication<br \/>\nPKCS11Provider<br \/>\nPort<br \/>\nPreferredAuthentications<br \/>\nProtocol<br \/>\nProxyCommand<br \/>\nPubkeyAuthentication<br \/>\nRekeyLimit<br \/>\nRhostsRSAAuthentication<br \/>\nRSAAuthentication<br \/>\nSendEnv<br \/>\nServerAliveInterval<br \/>\nServerAliveCountMax<br \/>\nStrictHostKeyChecking<br \/>\nTCPKeepAlive<br \/>\nUsePrivilegedPort<br \/>\nUser<br \/>\nUserKnownHostsFile<br \/>\nVerifyHostKeyDNS<\/p>\n<p>-P port<br \/>\nSpecifies the port to connect to on the remote host.\u00a0 Note that<br \/>\nthis option is written with a capital \u2018P\u2019, because -p is<br \/>\nalready reserved for preserving the times and modes of the<br \/>\nfile.<\/p>\n<p>-p\u00a0\u00a0\u00a0\u00a0\u00a0 Preserves modification times, access times, and modes from the<br \/>\noriginal file.<\/p>\n<p>-q\u00a0\u00a0\u00a0\u00a0\u00a0 Quiet mode: disables the progress meter as well as warning and<br \/>\ndiagnostic messages from ssh(1).<\/p>\n<p>-r\u00a0\u00a0\u00a0\u00a0\u00a0 Recursively copy entire directories.\u00a0 Note that scp follows<br \/>\nsymbolic links encountered in the tree traversal.<\/p>\n<p>-S program<br \/>\nName of program to use for the encrypted connection.\u00a0 The pro\u2010<br \/>\ngram must understand ssh(1) options.<\/p>\n<p>-v\u00a0\u00a0\u00a0\u00a0\u00a0 Verbose mode.\u00a0 Causes scp and ssh(1) to print debugging mes\u2010<br \/>\nsages about their progress.\u00a0 This is helpful in debugging con\u2010<br \/>\nnection, authentication, and configuration problems.<\/p>\n<p>EXIT STATUS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>The scp utility exits 0 on success, and &gt;0 if an error occurs.<\/p>\n<p>SEE ALSO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>sftp(1), ssh(1), ssh-add(1), ssh-agent(1), ssh-keygen(1),<br \/>\nssh_config(5), sshd(8)<\/p>\n<p>HISTORY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>scp is based on the rcp program in BSD source code from the Regents of<br \/>\nthe University of California.<\/p>\n<p>AUTHORS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>Timo Rinne &lt;tri@iki.fi&gt;<br \/>\nTatu Ylonen &lt;ylo@cs.hut.fi&gt;<\/p>\n<p>COLOPHON\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top<\/p>\n<p>This page is part of the openssh (Portable OpenSSH) project.\u00a0 Informa\u2010<br \/>\ntion about the project can be found at<br \/>\nhttp:\/\/www.openssh.com\/portable.html.\u00a0 If you have a bug report for<br \/>\nthis manual page, see http:\/\/www.openssh.com\/report.html.\u00a0 This page<br \/>\nwas obtained from the tarball openssh-6.7p1.tar.gz fetched from<br \/>\nhttp:\/\/ftp.eu.openbsd.org\/pub\/OpenBSD\/OpenSSH\/portable\/ on 2014-12-30.<br \/>\nIf you discover any rendering problems in this HTML version of the<br \/>\npage, or you believe there is a better or more up-to-date source for<br \/>\nthe page, or you have corrections or improvements to the information in<br \/>\nthis COLOPHON (which is not part of the original manual page), send a<br \/>\nmail to\u00a0man-pages@man7.org<\/p>\n<p>BSD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 December 31, 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSD<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_341\" class=\"pvc_stats all  \" data-element-id=\"341\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SCP(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 BSD General Commands Manual\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SCP(1) NAME\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top scp \u2014 secure copy (remote file copy program) SYNOPSIS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 &#8230; [[user@]host2:]file2 DESCRIPTION\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 top scp copies files between hosts on a network.\u00a0 It uses ssh(1) for data transfer, and uses [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_341\" class=\"pvc_stats all  \" data-element-id=\"341\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.linuxboxen.dk\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":true,"total_views":10,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}