What ports do ftp file transfer protocol and sftp secure she - CompTIA-N10-009

Question

What ports do FTP (File Transfer Protocol) and SFTP (Secure SHell File Transfer Protocol) utilize? 

Answers
  1. correct
Explanation

Correct Answer: B. 21, 22

  1. FTP (File Transfer Protocol):

    • Ports 20 and 21:
      • Port 21: Used as the command/control channel for FTP.
      • Port 20: Used as the data transfer channel (for active mode FTP).
    • While Port 21 is primarily used for control, Port 20 is involved only in certain FTP modes. However, in this context, Port 21 is the standard control channel for FTP.
  2. SFTP (SSH File Transfer Protocol):

    • Port 22: SFTP runs over SSH (Secure Shell) and uses Port 22 for secure data transmission.

Why the other options are incorrect:

  • 22, 23:

    • Port 22 is correct for SFTP, but Port 23 is used for Telnet, not FTP.
  • 21, 23:

    • Port 21 is correct for FTP, but Port 23 is again for Telnet, not SFTP.
  • 20, 21:

    • While these ports are both associated with FTP (Port 21 for control, Port 20 for data in active mode), this option does not account for SFTP, which uses Port 22.

No Payment Cards Needed

Related Courses

Discover a range of courses designed to provide you with the knowledge and skills needed to excel in your chosen field.

a prepsaret exam featured image
CompTIA Prep

220-1201 - CompTIA A+ Exam Core 1

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

220-1202 - CompTIA A+ Exam Core 2

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA SecurityX CAS-005

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Cloud Essentials+ CLO-002

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Security+ SY0-701

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Data + DA0-001

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Pentest+

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Linux+ XK0-005

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA CySA+ CSO-003

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA DataSys+ DS0-001

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Tech+ FC0-U71

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Cloud+ CV0-004

Start Course Prep
a prepsaret exam featured image
CompTIA Prep

CompTIA Server+ SK0-005

Start Course Prep

Easy way to pass your test within a week with prepsaret

You don’t need one month to study and pass your test.
With Prepsaret, it takes you a few days to grasp all the concepts needed to pass your exams

View Courses Offered