CompTIA Linux+ (XK0-006)System ManagementEasy

A server administrator needs to transfer a large file from a local workstation to a remote Linux server using a secure, efficient, and scriptable method. Which command is best suited for this task?

  1. Atelnet
  2. Bftp
  3. Cscp
  4. Drsh
Show answer & explanation

Correct answer: C. scp

The 'scp' command uses SSH for secure data transfer, making it ideal for transferring files between local and remote Linux systems while providing encryption and authentication.

Why the other options are wrong

  • A. Telnet is an insecure remote access protocol primarily for interactive sessions, not file transfer.
  • B. FTP (File Transfer Protocol) is insecure as it transmits data and credentials in plain text.
  • D. RSH (Remote Shell) is an insecure command for executing commands on remote hosts and is not suitable for secure file transfer.

SCP (Secure Copy)

A command-line utility for securely copying files and directories between hosts on a network. It uses SSH for data transfer and provides the same authentication and security as SSH.

  • Uses SSH for encryption and authentication.
  • Supports copying files between two remote hosts as well as local-to-remote and remote-to-local.
  • Syntax: scp [options] [[user@]host1:]file1 [[user@]host2:]file2

Memory trick: Securely Copying Files Protects Data.

More System Management questions