Introduction :

File Transfer Protocol (FTP): File Transfer Protocol (FTP) is a standard network protocol for file exchange between clients and servers. Operating on a client-server model, FTP can’t have built-in encryption, making data susceptible to security risks. Despite its simplicity and widespread use, FTP may not be ideal for transferring sensitive information due to its inherent security vulnerabilities.

Secure File Transfer Protocol (SFTP): Secure File Transfer Protocol (SFTP) is a secure alternative to FTP, addressing its encryption shortcomings. SFTP, an extension of the SSH protocol, encrypts both commands and data, ensuring confidentiality and integrity during transmission. Widely adopted for secure file transfers, SFTP operates over a secure connection and has become a standard in environments where safeguarding sensitive data is a top priority.

Prerequisites :

  1. FTP and SFTP server address
  2. Username and password
  3. PORT Number if it is varied with the default port number.
  4. Verify that your user account has the necessary permissions to access files on the server.

Implementation:

FTP

Method 1: Using Terminal 

Run the FTP Command in your terminal

  $ ftp <server_address>

If the FTP server is configured to a different port run the FTP Command in your terminal

 $ ftp -p <server_address> <port_number>

Enter FTP Username

It will prompt you to enter the FTP username. Type your FTP username and press Enter.

 $ Name (server_address:user): ftp_username

Enter FTP Password

Next, it will be prompted to enter the FTP password. Type your FTP password and press Enter.

 $ Password: ftp_password

Method 2: Using Filezilla

Install and open the Filezilla application.

Host: ftp.domain.com (ftp://server_address)
Username: Enter the FTP username (Same as your hosting account username or the FTP account you created) 
Password: Enter the FTP password (Your FTP account password)
Port: The Default port is 22 or otherwise enter your configured FTP server port.

SFTP

Method 1: Using Terminal 

Run the SFTP Command in your terminal

  $ sftp username@server_address

If the SFTP server is configured to a different port run the FTP Command in your terminal

 $ sftp -P <server_address> <username@server_address>

Enter SFTP Password

Next, it will be prompted to enter the SFTP password. Type your SFTP password and press Enter.

 $ Password: sftp_password

Method 2: Using Filezilla

Install and open the Filezilla application.

Host: sftp.domain.com (sftp://<server_address>)
Username: Enter the SFTP username (Same as your hosting account username or the SFTP account you created) 
Password: Enter the SFTP password (Your SFTP account password)
Port: The Default port is 23 or enter your configured FTP server port.

Note :
Remove with
1.  “server_address” with the IP address or hostname of the remote server.
2. “username”  with your actual username.
3. “password” with your actual password.

Leave a Reply