|

FEATURED POSTS

How to Change Outlook Password in 3 Different Ways

How to Change Outlook Password in 2 Easy Steps

Introduction Before you change your Outlook Password you have to first change it with your email provider. The reason...
spotify web player not working

Spotify Web Player Not Working [Fixed]

Introduction Spotify Web Player may stop working for you with the following error messages: "Spotify Web Player an Error...
DISM.exe /Online /Cleanup-Image /Restorehealth

DISM.exe /Online /Cleanup-Image /Restorehealth Explained

What is DISM.EXE /Online /Cleanup-image /RestoreHealth? "DISM.exe /Online /Cleanup-Image /Restorehealth" is a DISM command that repairs issue with the...
DHCP Relay agent

DHCP Relay Agent: Configuration in Windows Server 2016

What is a DHCP Relay Agent? A DHCP Relay Agent allows DHCP clients in a different network subnet to...
ForEach-Powershell

PowerShell ForEach: Syntax, Parameters, Examples

What is PowerShell ForEach? PowerShell ForEach (ForEach PowerShell) is a PowerShell construct used in iterating through values in a...

TRENDING POSTS

Remote Desktop Connection

Remote Desktop Connection an Internal Error Has Occurred [Fixed]

Introduction I recently received the error message "Remote Desktop Connection an Internal Error Has Occurred". It was strange because...

Find My Samsung: Register and Use Samsung Find my Mobile

Introduction Ever wondered how you could find your Samsung phone if you lost it? Find my Samsung or Samsung...
PowerShell vs CMD

Powershell vs CMD: Differences and Similarities Compared

Introduction This short guide compares PowerShell vs CMD (Windows command prompt). I will cover the history and nature of...
Spotify No Longer Supports this Version of Microsoft Edge

Spotify No Longer Supports this Version of Microsoft Edge [Fixed]

Introduction When you open Spotify web player on Microsoft Edge, you may receive the error message "Spotify No Longer...
Windows 10 Won't Boot

Windows 10 Won’t Boot With Black Screen? 3 Ways to Fix It

Why Won't Windows 10 Boot Up? If your Windows 10 stops with a black screen, the first question in...

BEST OF ITECHGUIDES

your pc ran into a problem and needs to restart

Your PC Ran Into a Problem and Needs to Restart [Fixed]

What Does "Your PC Ran Into a Problem and Needs to Restart" Mean? "Your PC ran into a problem...
How to Make a Pivot Table in Google Sheets

How to Make a Pivot Table in Google Sheets

Introduction You can make a Pivot Table in Google Sheets to simplify analysis of complex data. A Pivot Table...
Walmart Baby Registry

Walmart Baby Registry: Your Definitive Guide

Introduction Walmart Baby Registry gives expectant mothers a place to create a list of items they need for their...
iPhone SE vs iPhone 6s compared - which to buy

iPhone SE vs iPhone 6s Compared: Which to Buy

Introduction Considering whether to buy iPhone SE vs iPhone 6s? Not sure which is better? When I am trying...
dropbox login

Dropbox Login: Your Ultimate Guide to Dropbox

Introduction Dropbox login allows you to sign in to and use Dropbox. But what is Dropbox? Let's kick off...

RECENT POSTS

how to merge cells in excel

How to Merge Cells in Excel in 2 Easy Ways

Introduction You can merge two Cells in Excel using CONCATENATE function or the “&” (ampersand) operator. Though Excel has...
How to Make a Pivot Table in Google Sheets

How to Make a Pivot Table in Google Sheets

Introduction You can make a Pivot Table in Google Sheets to simplify analysis of complex data. A Pivot Table...
how to make Pivot Table

How to Make a Pivot Table in Excel

Introduction A Pivot Table allows you to analyze, summarize and calculate large data to help find relationships. With a...
RAID 3 (Redundant Array of Independent Disks) Explained

RAID 3 (Redundant Array of Independent Disks) Explained

What is RAID 3? RAID 3 is a RAID implementation that uses striping with a dedicated parity disk....
RAID 5 vs RAID 6

RAID 5 vs RAID 6: Differences, Benefits and Disadvantages

What is RAID 5 vs RAID 6? RAID 5 and RAID 6 uses striping with distributed parity technique. However,...
concatenate excel

Concatenate in Excel: How to Concatenate Columns and Strings

What is Concatenate in Excel? Concatenate in Excel is joining two strings into one continuous string. You can join...

How to Add in Excel (Excel Sum) with Examples

Introduction There are different ways to add numbers in Excel. You could simply select the cells containing the data....
Excel Count

Excel Count: How to Count in Excel With Examples

Introduction Excel COUNT Function is used for counting items in a worksheet. Excel COUNT also has the conditional function,...
powershell.exe -command

Powershell.exe Command: Syntax, Parameters and Examples

Introduction You may be wondering why write on Powershell.exe Command. Are there special commands for Powershell.exe? Yes! When you...
how to move columns in excel

How to Move Columns to Rows and Rows to Columns in Excel

Introduction If you receive some Excel data in columns, you can easily move the columns to rows in Excel...

MUST READ

DISM Host Servicing Process (DismHost.exe)

Dism Host Servicing Process (DismHost.exe), a Malware?

Introduction There are conflicting information about Dism Host Servicing Process (DismHost.exe). Some say it is a genuine Windows process,...
Amazon Orders

Amazon Orders: Everything You Need to Know

Introduction Ever wondered whether you can hide some of your Amazon orders? Yes, you can! But how do you...
NTFS Permissions with Share Permissions

NTFS Permissions with Share Permissions Compared

Introduction Combing NTFS permissions with share Permissions increases folder security within a network. Every Windows Administrator should have a...
most useful powershell commands

18 Most Useful Powershell Commands for Windows Admins

Introduction This guide will cover 18 most useful powershell commands for sys admins. PowerShell commands,...
dropbox login

Dropbox Login: Your Ultimate Guide to Dropbox

Introduction Dropbox login allows you to sign in to and use Dropbox. But what is Dropbox? Let's kick off...

FTP and FTP Port, SFTP and SFTP Port: Quick Reference

-

Introduction

FTP and SFTP are two protocols for transferring files between a server and a client computer. FTP port is 21 while SFTP port is 22. SFTP communicates via encrypted connection, while FTP uses plain-text (unsecured) communication.

This quick reference guide covers FTP and SFTP, how they work and the differences between them.

What is FTP & FTP Port Number?

FTP (File Transfer Protocol) is a client-server communication protocol used to transfer files between a client and a server. FTP port is 21.

File Transfer Protocol (FTP) Clint-Server Model and Authentication

For FTP communication to occur there has to be a server and a client.

FTP requires that clients authenticate with the server when they attempt to connect. Authentication is via clear-text, meaning the communication between the FTP client and FTP server is not encrypted.

This makes FTP communication insecure. Meaning that an intruder with access to the communication will be able to see user names, password and files transferred.

FTP connection can be Active or Passive. This determines how a data connection is established between the client and the server. In both connection types, the client creates a TCP (Transmission Control Protocol) connection to the server via FTP port 21.

In active FTP mode, the connection begins by the client listening for incoming data connections from a random port, FTP port M. The client then sends FTP command PORT to let the server know which FTP port it is listening on. Next, in the communication process the server initiates a data channel to the client from its port 20, the FTP server data port.

There are circumstances where the client is behind a firewall. A client behind a firewall may not be able to accept incoming TCP connections. In this circumstance, FTP Passive mode is used for the connection.

In Passive FTP mode, the client uses the control connection to send a PASV FTP command to the server. The client then receives an IP address and server port number from the server. Finally, the client uses the information received from the server to open a data connection from an arbitrary client FTP port to the IP address and port received.

FTP Port Numbers Explained

As described above, FTP uses two TCP connections for communication, FTP port 20 and 21. FTP port 21 is used to send control information from the server to the client. Port 21 is not used to send data files. The second FTP port, 20 is used to send data files between the server and the client.

What is SFTP & SFTP Port Number?

SFTP (SSH (or Secure) File Transfer Protocol) allows for file and data transfer over a connection secured using the SSH (Secure Shell) protocol. Unlike FTP in SFTP, communication between a client and a server is encrypted over SFTP port is 22.

Secure FTP (SFTP) Clint-Server Model and Authentication

Like FTP, SFTP communication occur between a client and a server. SFTP server requires a web server with the correct port (SFTP port 22 or any other port you choose to use).

The port must be forwarded to the FTP server from the firewall. Once you correctly install an SFTP server, an SSH Host key is generated. Users can then be created and assigned the necessary permissions that will allow them connect to the SFTP server.

To connect to a SFTP server, you require an SFTP Client. An SFTP Client could be a GUI or command line tool. The SFTP client authenticates and transfers files over a secure and encrypted connection to the SFTP server via SFTP port 22 (or the port specified in the SFTP server).

Differences Between FTP and SFTP

Apart from the TCP ports that FTP and SFTP use for connection, there are other differences between the two protocols.

The table below highlights the differences between the two protocols.

S/NFeatureFTPSFTP
1PortFTP runs on Port 21 and 20 SFTP uses port 22
2Data TransmissionUses two separate channels to send control information and transfer data.SFTP combines control and data into secure packets and send them through a single channel.
3SecurityFTP communication is not encrypted. Meaning a third party could intercept the data.On the other hand, SFTP is data is sent via encrypted connections. If an intruder intercepts the data, it will be meaningless to the hacker.
4FirewallFTP is not firewall friendly. SFTP uses a single SFTP Port 22 for both inbound and outbound connections. This means that a single port can be opened in the firewall for SFTP communications.

Conclusion

In this quick reference guide, I covered FTP, SFTP, FTP port and SFTP port. FTP runs on port 20 and 21 while SFTP port is 22.

If you have any question or comment use the “Leave a reply” form at the end of this guide. You could also share your experience so other readers can benefit from it.

Other Helpful Guides

Additional Resources and References

YOU MAY ALSO LIKE:

LEAVE A REPLY

Please enter your comment!
Please enter your name here

By using this website you agree to accept our Privacy Policy and Terms & Conditions