•  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 จะควบคุมสำเนาไฟล์ที่ปลอดภัยหลังจากการตรวจสอบสิทธิ์

ข้อกำหนดเบื้องต้น

1. ควรติดตั้ง "scp" ในระบบของคุณ ถ้าไม่ติดตั้งโดยใช้คำสั่งต่อไปนี้

1.sudo apt ติดตั้ง openssh-client (สำหรับ Debian / Ubuntu)
2. sudo yum install openssh-client (สำหรับแพคเกจ RPM)

2. ควรมีการเชื่อมต่อ SSH ระหว่างโฮสต์ระยะไกลและโฮสต์ภายใน

การคัดลอกแฟ้มโดยใช้ Scp จากเครื่องระยะไกลไปยังเครื่องท้องถิ่น

ไวยากรณ์ของคำสั่ง scp ในขณะที่คัดลอกไฟล์จากระยะไกลไปยังเครื่องท้องถิ่นมีดังนี้

ชื่อผู้ใช้ scp @ remote_host: path_of_remote_file place_to_copy_on_local_machine

# ถ้าคุณต้องการคัดลอกไปยังไดเร็กทอรีท้องถิ่นที่คุณกำลังเข้าถึงอยู่เพียงแค่ใส่ "." แทนที่เส้นทางปลายทาง

ชื่อผู้ใช้ scp @ remote_host: path_of_remote_file


การคัดลอกโฟลเดอร์โดยใช้ Scp จากเครื่องระยะไกลไปยังเครื่องท้องถิ่น

หากต้องการคัดลอกโฟลเดอร์ให้ใช้ตัวเลือก "-r" "-r" ย่อมาจาก recursive เนื่องจากจะคัดลอกโฟลเดอร์และโฟลเดอร์ย่อยด้วย

scp-r ชื่อผู้ใช้ @ remote_host: path_of_remote_folder place_to_copy_on_local_machine


ตัวเลือกที่มีประโยชน์บางอย่างที่จะใช้กับคำสั่ง scp

1. ตัวเลือก "-P" ใช้เพื่อระบุพอร์ตไปยังโฮสต์ระยะไกล
2. ตัวเลือก "-v" ใช้เพื่อเปิดโหมด verbose โหมด verbose ช่วยให้มั่นใจได้ว่าการพิมพ์ข้อความการแก้จุดบกพร่องทั้งหมดบนหน้าจอ
3. ตัวเลือก "-q" คือโหมดเงียบ ปิดใช้งานข้อความทั้งหมดจากไคลเอ็นต์ SSH
4. ตัวเลือก "-l" จำกัด การใช้แบนด์วิธ

ขอแนะนำให้ใช้คู่มือคำสั่ง scp เพื่อเก็บข้อมูลในตัวเลือกทั้งหมด คุณสามารถใช้คำสั่งได้

คน scp

Was this reply helpful?

Related topics

  • SCP Command Syntax Examples in Linux
  • SCP From Local Machine To Remote
  • sObject - WinSCP Guide
  • How to rsync two directories
  • yarn vs npm. Which one's better?
  • What Does NTP Mean?
  • Psychz เครือข่ายเปิดตัวคุณสมบัติใหม่ที่เรียก 'เอเชียแปซิฟิกแฝงต่ำเส้นทาง'
  • Psychz ประกาศเปิดตัวศูนย์ข้อมูลยุโรปในกรุงลอนดอนและอัมสเตอร์ดัม
  • Park Domains
  • Multi-Factor Authentication (MFA): A must for your account security!
  • Linux Command Line Tutorial For Git
  • Hardware Based Firewall Solution
  • GDPR and its impact on hosting industry!
  • Cheap Minecraft Dedicated Server Hosting
  • Best Dedicated Server Providers In Dallas: A Comprehensive Guide
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