Set up FTP Server and Client
Setting up an FTP server and client for beginners.
Set up FTP Server and Client
Setting up an FTP server and client for beginners.
CONFIGURING THE FTP SERVER ON RHEL 9
- Become Root
sudo su
- Confirm internet connectivity.
ping google.com
- Confirm if FTPD is already installed. If it is, skip to step 5.
rpm -qa | grep ftpd
- Download FTPD.
dnf install vsftpd -y
- (Optional) Create a backup of the vsftp.conf file.
cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd_orig.conf
- 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
- Start and enable the service.
systemctl start vsftpd.service && systemctl enable vsftpd.service
- 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
- Switch back to a regular user (ctrl + d).
CONFIGURING AN FTP CLIENT ON UBUNTU
- Become root
sudo su
- Confirm internet connectivity.
ping google.com
- Update your packages.
apt update && sudo apt upgrade -y
- Confirm if FTP (client) is installed.
sudo apt show ftp
- Install FTP if it’s not listed.
apt install ftp
- Switch back to a regular user (ctrl + d).
TRANSFER FILES VIA THE FTP CLIENT
- On the FTP client, log into the FTP server.
ftp [ftp-server-IP]
-
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).
-
Switch to binary mode (transfers files without modification).
bin
- Enable progress logs.
hash
- Set where the file will be saved on the client.
lcd [path-to-save-files]
- (Optional) Confirm where it will be saved:
lpwd
- Transfer the files.
put [file-you-want-to-transfer-FROM-client-to-server]
get [file-you-want-to-PULL-from-server]
- 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