•  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

  • 最佳開源軟件對於Linux用戶
  • 尋找在東海岸的企業服務器
  • 在比較:視窗VS Linux的
  • 全局服務器負載平衡
  • 你如何處理垃圾郵件報告?
  • sObject - Intro
  • Web Application Firewall(WAF)
  • Unique Visitors
  • Ubuntu vs Mint
  • The Role of CDN/DNS in Disaster Recovery Planning
  • Prefetch URLs Intro
  • NoSQL vs SQL
  • How to move existing domain from one CDN device to another
  • CDN and Load Balancer: Ultimate combination for efficient content delivery
  • Affordable Dedicated Servers
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