How to install an FTP Server on Ubuntu 22.04 with VSFTPD
Вставка
- Опубліковано 21 лис 2022
- In this video I will show you how to install VSFTPD to Setup FTP Server on Ubuntu 22.04. FTP is one of the oldest Internet protocols that is still widely used and is a standard protocol in TCP/IP.
Get Kamatera VPS (30 days free trial)
zacs-tech.com/go/kamatera-vps/
Get RedHosting VPS
zacs-tech.com/go/rosehosting/
Get InterServer VPS
zacs-tech.com/go/interserver/
Get Hawk Host VPS
zacs-tech.com/go/hawkhost/
Register domain name
tinyurl.com/y8hz9seu
Some of the commands
sudo chown nobody:nogroup /home/username/ftp
sudo chmod a-w /home/username/ftp
sudo mkdir /home/username/ftp/upload
sudo chown user:user /home/user/ftp/upload
echo "My FTP Server" | sudo tee /home/user/ftp/upload/demo.txt
user_sub_token=$USER
local_root=/home/$USER/ftp
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO
echo "user" | sudo tee -a /etc/vsftpd.userlist
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.pem -out /etc/ssl/private/vsftpd.pem
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
"Disclosure: Some of the links in this video description may be affiliate links, which means I earn a commission if you make a purchase through the link. This comes at no additional cost to you and helps support this channel.
perfect video, short, complete, totally efficient ! Bravo !
I fully agree. Thanks for this great video. Nice voice, good explained and it works. I spent a lot of time to get running my vsftpd in SSL-Mode until I found this video. @ZacsTech: Feel you as a hero 🙂
You forgot to put this line in the descriptions, btw, Thanks you a lot!
sudo ufw allow from any to any port 20,21,10000:10100 proto tcp
Perfect. This Video helped me a lot! Thank you
Excellent. This video helped me a lot. Thank you so much
Brilliant tutorial. Please keep them coming!!!
perfect video thank you really much!
Thanks for the demonstration!
Extremely helpful, thank you!
Solid base, had to adapt a bit for my usecase
Oh my god it worked first try. Thank you
Tank you so much. I learnt very much. 😘
The timing for this video was perfect, because we are using vsftpd in class, and I didn't understood half of it, now with your explanations and your calm music, I think it makes more sense to me now.
And other thing, why do you use the key and the certificate both in the same file? And have you or can you upload about how to make virtual users in vsftpd? I will appreciate it 😅😊
Excellent video. If I could have typed better it would have went very smooth. All problems encountered were my typo's. But to quote a certain Dr., "It is alive!!"
Thank's! I love you!
Hello, GREAT VIDEO. But I had to change change the passive ports from (pasv_min_port : 10000 ; pasv_max_port : 10100) to (pasv_min_port : 40000 ; pasv_max_port : 40100).
Very helpful. Thanks
helped alot thx mate
thank you so much
how to check demo file from windows?
SO FAR i was able to create ftp server and connect however there is a bug with the folder because the client from FileZilla ins unable to list the folders
Thank you so much
thanks, great!
how can i grant full acces to all folders? Like an admin?
Hey, great video, quick question on resiliency, would you deploy this on a cluster or would you run in active passive mode with 2nd VM in paired region (Azure)
Thanks mate
I am using linux, how to add files to the upload folder so I can access them from my iphone? simply copy paste is not available, you cant paste there is no option.
Hello, i did everything like i am supposed to but when i want to connect it tells me there is no route to host. Anyone know how to fix this issue?
Hi! I want to connect my FTP server while I'm in ooutside my home network. I tried the outside IP address, but it doesn't work. Please let me know if there is something I can do!
Anyways the video is perfect and helped me to reach my files in my home network.
mine can't connect in fillezila, it says "connection timeout"
It doesnt work after ssl certificate enable
it is not connecting with public IP the port is open
So this create a FTP server with a private dir for every user, but if I simply want to access something else on the Ubuntu server with a user that has admin/sudo power, for example to upload a website into apache2 folder's, can I with this ? Or it is simply a FTP server that is used for storage distribution
EDIT: I added my default user in the userlist (Didn't create a new one) and I created a FTP folder him because otherwise I was getting this error
Error: GnuTLS error -15 in gnutls_record_recv: An unexpected TLS packet was received.
Error: Could not read from socket: ECONNABORTED - Connection aborted
Error: Could not connect to server
But this user can't go anywhere else than his ftp folder, it is an admin, he have sudo perm and all. I simply want to be able to access my website files located in the apache's folders what should I do ?
EDIT2: I used mount
mkdir /home/user2/ftp/www
chown user2:user2 /home/user2/ftp/www
mount --bind /var/www/html/ /home/user2/ftp/www
Thank you very much for your help. With your tips I managed to do the same thing you wanted to do. I wouldn't have made it without your comment.
hello, i have a question? How do I change the password (too weak) of the user I created?
Check this link itslinuxfoss.com/change-password-ubuntu-22-04/
thanks
my ftp sever is getting failed
I follow you every step till filezilla but when i click on quick connect .it not works.i use hotspots for internet conection there is a problem in that?
same issue, just set up filezilla on a second vurtial machine on a local network, bit easire to use... to install filezilla just do "sudo apt install filezilla". im using ubuntu and debian and it works
Yes! Both your devices MUST be on same WiFi network
And should be reachable inside that network
sudo: nano: command not found
Good, but some more explanation can be added.
Firstly thanks for video ZachsTech. I watched this video and I followed exactly what was done. But that have some errors let me explain. First error is "500 OOPS: cannot change directory" I get this in FileZilla and that's solution is "sudo chmod 755 /home/phil/" after that I get secondly error. It's a "553 Could not create file" error. This problem is if you try put any file to ftp server I get this error. And that solution is "sudo chown -R phil /home/phil/" and I open the "vsftpd.conf" file and added this line "allow_writeable_chroot=YES" in the end of the line. Then restart the vsftpd service and its running without any errors.
thx
dosent work xd
Working😅 you made some mistake
Skill issue
@@agentnightmare8629 trueeeeeee
@@agentnightmare8629 who!?
9:27
i belive the keyout extenssion is .key
replaced vsftpd.pem with vsftpd.key
sudo openssl req -x509 -nodes -days 3650 -newkey rsa:2048 -keyout /etc/ssl/private/vsftpd.key -out /etc/ssl/private/vsftpd.pem