What ports do SFTP and FTPS use?

hostingcoupons

New member
Registered
Joined
Jul 22, 2016
Messages
9
Points
0
What ports do SFTP and FTPS use? I read that they are using port 21 or 22? if it is true, can I change these ports to another ports?
 

eva2000

Well-known member
Registered
Joined
Jan 14, 2017
Messages
173
Points
28
SFTP default is 22 but can be changed

FTPS/FTP depends on how you set it up either as active or passive ftp where passive have different command and data connection ports defined by the ftp server configuration - see https://winscp.net/eng/docs/ftp_modes

With the passive mode, most of the configuration burden is on the server side. The server administrator should setup the server as described below.
The firewall and NAT on the FTP server side have to be configured not only to allow/route the incoming connections on FTP port 21,2) but also a range of ports for the incoming data connections. Typically, the FTP server software has a configuration option to setup a range of the ports, the server will use. And the same range has to be opened/routed on the firewall/NAT.
For instance for my centmin mod pure-ftpd virtual ftps setups for individual sites the ftps is via explicit tls/ssl (only) for ports 21 and passive ports 30001 to 50011 with CSF Firewall appropriately configured for those ports.

How you change it depends on ftp server you use. So will need to consult the relevant ftp server's documentation. Also if you have a firewall on your server, you'd need to update the whitelisted changed ports too.
 

VictorVictories

Well-known member
Registered
Hosting Provider
Joined
Feb 7, 2017
Messages
114
Points
0
SFTP use the SSH protocol for FTP services. What this means is one can use encryption and decryption technique for transferring file, one issue with SFTP is we can't use multiple channels while using FTP.
 

HostingWaves

Member
Registered
Joined
Jan 16, 2017
Messages
53
Points
0
SFTP is nothing but OpenSSH protocol, mean if you change SSH port from 22, the same changed port will be used for SFTP. I have never used FTPS on Linux machine, only used SFTP.
 

iserveradmin11

Member
Registered
Joined
Mar 17, 2017
Messages
60
Points
8
You can change any default port by changing the port number mentioned in configuration files of desired service and reload the service.
If using any kind of firewall then remember to change the rules and allow the desired port/s.
 
Older Threads
Replies
7
Views
11,708
Replies
5
Views
5,829
Replies
33
Views
13,574
Replies
6
Views
3,133

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top