FTP

FTP

Basic Commands

ftp 10.10.10.1

FTP connect

sftp 10.10.10.1

SFTP connect

passive

enter passive mode

ls

list files

get file.txt

download file

exit

terminate ftp session

You can use wget to download the files of an FTP server:

wget -r ftp://10.10.0.1

FTP Notes

Uses TCP

Port 21 - Control Connection

Port 21 - Data Connection

Insecure but can be enhanced with SSL/TLS (FTPS)

TFTP Notes

Trivial File Transfer Protocol

Uses UDP so requires no confirmation that the data was sent.

Insecure

SFTP Notes

SSH File Transfer Protocol

Uses TCP transport on port 22.

Uses symmetric and asymmetric encryption

Can authenticate with SSH key or username and password

FTPS Notes

FTP Secure

Uses TCP port 443

Adds SSL/TLS encryption on top of FTP

Can authenticate with a PKI

Last updated

Was this helpful?