Skip to content
Topic: Secure File Transfer (SFTP & SCP)Switch

4.0 Network Services and Security

Secure File Transfer (SFTP & SCP) Practice Questions

New in CCNA v2.0

Managing configuration and software files with SCP and SFTP, and why TFTP is not secure.

CCNA v2.0 objective 4.2 · objective map

Author-reviewed by LabFabric · 25 September 2026 · Report a content issue

All 7 Secure File Transfer (SFTP & SCP) questions in this set

Answers and explanations appear when you work through the set above.

  1. Which transport port do SCP and SFTP use?

    • TCP 22
    • UDP 69
    • TCP 21
    • UDP 514
  2. Why is TFTP a poor choice for copying a device configuration across an untrusted network?

    • No authentication or encryption
    • Its fixed 1 KB file limit prevents transferring device configurations
    • Requires matching SSH keys on both ends
    • Restricted to transfer over IPv6 networks
  3. Which command copies the running configuration of an IOS device to a file on an SCP server?

    • copy running-config scp://[email protected]/r1-config.txt
    • copy running-config tftp://192.0.2.10/r1-config.txt
    • ip scp server enable
    • copy scp://[email protected]/r1-config.txt running-config
  4. An engineer wants an IOS router to act as an SCP server. Which command enables it, given that SSH is already working?

    • ip scp server enable
    • ip ssh version 2
    • transport input ssh
    • crypto key generate rsa
  5. Which prerequisite is needed before 'crypto key generate rsa' can create the default SSH host key on an IOS device, so that it can accept SSH sessions and SCP transfers?

    • A non-default hostname and domain name
    • An SNMP read-write community on the management VLAN
    • A DHCP pool on the management VLAN
    • An active NTP association
  6. After copying a new IOS image to flash, which command helps confirm the file arrived intact by comparing its hash with the vendor's published value?

    • verify /md5 flash:image.bin
    • dir flash:
    • show flash: | include image.bin
    • boot system flash:image.bin
  7. Which statement about SFTP is correct?

    • A distinct file-transfer protocol over SSH, different from FTP over TLS
    • Standard FTP commands carried on TCP port 22, without an SSH transport session
    • SFTP sends the password in clear text but encrypts the file
    • SFTP uses UDP so it is faster than SCP