← Back to list

Set up FTP Server and Client

Setting up an FTP server and client for beginners.

Lumenyx · 2025-10-08 08:34 · 0 claps · 1.3 min read
#ftp-server #ftp #ftp-client
Open on Medium ↗

Set up FTP Server and Client

Setting up an FTP server and client for beginners.

CONFIGURING THE FTP SERVER ON RHEL 9

  1. Become Root
sudo su
  1. Confirm internet connectivity.
ping google.com
  1. Confirm if FTPD is already installed. If it is, skip to step 5.
rpm -qa | grep ftpd
  1. Download FTPD.
dnf install vsftpd -y
  1. (Optional) Create a backup of the vsftp.conf file.
cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd_orig.conf
  1. Make these changes:
vi /etc/vsftpd/vsftpd.conf
  • Confirm: anonymous_enable=NO
  • Uncomment: ascii_upload_enable=YES
  • Uncomment: ascii_download_enable=YES
  • Uncomment (optional): ftpd_banner=Welcome to [your name]’s FTP service
  • Add at the end of the file: use_localtime=YES
  1. Start and enable the service.
systemctl start vsftpd.service && systemctl enable vsftpd.service
  1. You may have to allow FTP inbound traffic on the firewall (firewalld).

Temporarily allow FTP:

firewall-cmd --zone=public --add-service=ftp

Permanently allow FTP:

firewall-cmd --zone=public --permanent --add-service=ftp

Remove the FTP firewall rule (if you want to remove it later):

firewall-cmd --zone=public --permanent --remove-service=ftp
  1. Switch back to a regular user (ctrl + d).

CONFIGURING AN FTP CLIENT ON UBUNTU

  1. Become root
sudo su
  1. Confirm internet connectivity.
ping google.com
  1. Update your packages.
apt update && sudo apt upgrade -y
  1. Confirm if FTP (client) is installed.
sudo apt show ftp
  1. Install FTP if it’s not listed.
apt install ftp
  1. Switch back to a regular user (ctrl + d).

TRANSFER FILES VIA THE FTP CLIENT

  1. On the FTP client, log into the FTP server.
ftp [ftp-server-IP]
  1. Enter the username and password. This uses a local account from the FTP server (if Kenny is an account on the FTP server, then you can use that account).

  2. Switch to binary mode (transfers files without modification).

bin
  1. Enable progress logs.
hash
  1. Set where the file will be saved on the client.
lcd [path-to-save-files]
  1. (Optional) Confirm where it will be saved:
lpwd
  1. Transfer the files.
put [file-you-want-to-transfer-FROM-client-to-server]
get [file-you-want-to-PULL-from-server]
  1. Leave FTP mode.
bye

메타데이터
post_id
4eb3c935091b
slug
set-up-ftp-server-and-client-4eb3c935091b
url
https://medium.com/@lumenyx/set-up-ftp-server-and-client-4eb3c935091b
canonical_url
https://medium.com/@lumenyx/set-up-ftp-server-and-client-4eb3c935091b
author_url
https://medium.com/@lumenyx
status
ok
fetched_at
2026-08-31 09:13:38