•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

SCP从远程本地

  • Home
  • Client
  • Qa Forum
  • SCP从远程本地

Posted By: Anush | 1 Replies | Last Reply On: Jul 11, 2017 04:27:26

如何将数据远程复制/传输到本地机器?

Psychz - Girish

Votes: 0Posted On: Jul 11, 2017 04:27:26
 

SCP代表Secure Copy。这是一个非常有用的命令,用于通过SSH连接将文件从远程复制到本地主机,反之亦然。当我们通过“scp”命令启动文件从远程复制到本地系统时,OpenSSH服务器守护进程在认证后调节文件的安全副本。

先决条件

系统上应安装“scp”。如果没有,请通过运行以下命令进行安装。

1.sudo apt安装openssh-client(对于Debian / Ubuntu)
2. sudo yum安装openssh-client(对于RPM包)

2.远程本地主机之间应该有一个SSH连接。

使用Scp从远程文件复制到本地机器

将文件从远程文件复制到本地机器时,scp命令的语法如下。

scp username @ remote_host:path_of_remote_file place_to_copy_on_local_machine

#如果要复制到当前正在访问的本地目录,只需放一个“。”。代替目的地路径。

scp username @ remote_host:path_of_remote_file。


使用Scp从远程复制文件夹到本地机器

要复制文件夹,请使用“-r”选项。 “-r”表示递归,因为它也复制文件夹及其子文件夹。

scp -r username @ remote_host:path_of_remote_folder place_to_copy_on_local_machine


与scp命令一起使用的一些有用的选项

1.“-P”选项用于指定远程主机的端口。
2.“-v”选项用于打开详细模式。详细模式可确保在屏幕上打印所有调试信息。
3.“-q”选项是安静模式。它禁用所有来自SSH客户端的消息。
“-l”选项限制带宽使用。

建议您通过scp命令手册获取所有选项。您可以使用该命令

男子scp

Was this reply helpful?

Related topics

  • 顶级CRM软件
  • 视频流专用服务器
  • 英国专用服务器
  • 窗口正在关闭在Windows Server 2003
  • 云或专用服务器
  • cVirtual Supported Operating System
  • What is Intel Xeon Processor & Why Is It Used For Servers?
  • The Ultimate Guide to Choosing the Best Data Center Location
  • SCP Command Syntax Examples in Linux
  • Mirai Botnet Co-Authors Plead Guilty on Two Charges
  • How to use cPanel?
  • How to Update Account Details?
  • How does Nagios monitoring work?
  • Devices Intro
  • Create SRV Record
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801