Tutorial or walk through to set up a person to be able to ftp into Mint server for website.
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Tutorial or walk through to set up a person to be able to ftp into Mint server for website.
Hello I know enough just to be dangerious. I would appreciate a walk through or tutorial on setting Mint linux webserver so someone can ftp their web pages into the site. Particular needs are the user admin for ftp useage to upload to server, what firewall issues need to be allowed and initial site setup.
FTP has been retired about 10 years ago with the advent of SFTP but there are still a lot of guides kicking around the net where it is mentioned, partially because it is so hard to set up and used to get a lot of attention. What you want instead, because it is far less insecure and much easier, is SFTP. To get SFTP, just install the package OpenSSH-server on the target machine and then any user can log in with SFTP. (There are further instructions if you want to prevent shell access or require keys instead of passwords. Turning off passwords and using keys instead is highly recommended.)
To connect to an SFTP server, you can use your file manager or a special client like FileZilla. Nautlius is the default file manager for Ubuntu or Linux Mint, if you are using that, and there you can press ctrl-L and enter the connection information:
Code:
sftp://someuser@server.example.com/
Or instead of ctrl-L you can go to the menu File->Connect To Server and use the same dialog. FileZilla is almost as easy, but I'd recommend the file manager like Nautilus, Thunar, PCManFM, and the others for starters.
Be sure that everyone has a serious password, or that you use keys, because the minute it is on the net it will be found and bots will be trying the door knobs. With SFTP you can keep them out. With FTP not so much.
FTP has been retired about 10 years ago with the advent of SFTP but there are still a lot of guides kicking around the net where it is mentioned, partially because it is so hard to set up and used to get a lot of attention. What you want instead, because it is far less insecure and much easier, is SFTP. To get SFTP, just install the package OpenSSH-server on the target machine and then any user can log in with SFTP. (There are further instructions if you want to prevent shell access or require keys instead of passwords. Turning off passwords and using keys instead is highly recommended.)
To connect to an SFTP server, you can use your file manager or a special client like FileZilla. Nautlius is the default file manager for Ubuntu or Linux Mint, if you are using that, and there you can press ctrl-L and enter the connection information:
Code:
sftp://someuser@server.example.com/
Or instead of ctrl-L you can go to the menu File->Connect To Server and use the same dialog. FileZilla is almost as easy, but I'd recommend the file manager like Nautilus, Thunar, PCManFM, and the others for starters.
Be sure that everyone has a serious password, or that you use keys, because the minute it is on the net it will be found and bots will be trying the door knobs. With SFTP you can keep them out. With FTP not so much.
Yeah, I agree. SSH is extremely simple, flexible (can even replace VNC in places), and by definition, secure. I would highly reccommend using KeePass or something of that nature to generate and store strong passwords. Ideally your key should look something like this:
3570d8ef2545770e925f4dce414a05ebfd4d5427ce5572566c8c74fc65f19eaf
For all intents and purposes these days, that's uncrackable...especially considering after I think 5 failed attempts you get locked out for about a minute. Change that every month, and you're good. You never need to remember it.
I used SSH and SFTP at work, and it was so simple and worked so well I used it at home.
We can walk you through it. There are a lot of choices and the answers change depending on the choices, so the tutorial would quickly either become a fat book or else irrelevant to your needs.
The first step is to set up basic SFTP for your users. Then the next steps depend on whether you want to try to chroot the accounts and to where.
That will open up the ports you will need for web services. Note that you enable UFW after allowing SSH in to keep from getting locked out. (You can also work directly with iptables if you don't want UFW.)
If you don't have the package openssh-server yet, you'll need that for remote access:
It's also a good idea to install "tmux" and use that if you are accessing via SSH a lot.
If you have Apache2 already installed, you'll need to decide if you will host more than one web site now or in the future. It's easier to move things now. If not, then the defaults will do. For reference, the default vhost (web site) has its Apache2 configuration file in /etc/apache2/sites-enabled/000-default.conf The relevant line there is DocumentRoot which points to /var/www/html and if you are only ever going to run a single site from that machine it can be left alone. Otherwise, it is better to change it.
Will you have more than one web site hosted on that machine now or in the near future? If not, then you can set the group permissions for /var/www/html to allow the webmasters to work there: https://www.linuxquestions.org/quest...e-users-37043/ If yes, then change the DocumentRoot to point to a directory named after your web site, e.g. /var/www/www.example.com/html, create the directory and then set the permissions.
I was hoping for a tutorial of some sort. Thanks all for your help.
LinuxMint doesn't make a "webserver" edition.
There's Common Sense, Experience, and Best Practice.
ftp as a means to access stuff from the server is best served using the sFTP protocol.
The "ftp server" can be anything that has started and configured an ftpd deamon.
"ftp server" software is not even entirely necessarily since you only need scp or sftp
and openssh-server provides this.
You have a host, it can be only a couple of things.
Local or Remote?
Physical or Virtual?
You're running an unknown OS incorrectly identified as "Mint linux webserver", Great!
I haz a toaster.
open a terminal and issue:
Code:
inxi -c0 -Fsz | nc termbin.com 9999
(Internet is assumed working)
and paste the short url here.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.