LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-19-2007, 03:44 PM   #1
maxsanders
Member
 
Registered: Jan 2006
Location: Southeast US
Distribution: Kubuntu Edubuntu Suse10.2
Posts: 53

Rep: Reputation: 15
FTP to my apache server


With help from this group, I now am hosting my web sites with my Suse apache server box which also is my firewall and router. Many thanks.

I now need to upload updated web pages to my server from a remote location. I can use something like Filezilla or the like to upload, but do not know what I must do on the server end . I assume the server becomes a FTP client, needs password protection against unauthorized entry etc, need firewall to allow FTP port, etc. Please advise.
 
Old 06-19-2007, 04:06 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
you need to install and run an ftp server, like vsftpd, proftpd, pure-ftpd, etc. passwords with ftp are the pw of the user, and are usually plain text unless you tunnel it through ssh or something like that. yes, you'll most likely have to forward ports for ftp through the firewall.

if it's just for your own personal use, not a lot of files, infrequent uploads, etc. it might be better to install openssh and transfer files securely through scp. it depends on your uses and how secure you want to be (not that ftp can't be secure, but ssh has a better track record in that respect, probably harder to crack than having a zillion idiots slamming your port 21 with brute force password attacks, etc.).
 
Old 06-19-2007, 04:14 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,299
Blog Entries: 8

Rep: Reputation: 368Reputation: 368Reputation: 368Reputation: 368
The traditional FTP protocol has an inherent security problem in that it sends data unencrypted--in particular, a packet sniffer anywhere along the way can read your password. A preferable solution is to use the sftp protocol, which is provided by the openssh-server software package (not sure if the package name is the same in Suse).

There are basically two ways to access an ssh account. The LESS secure method involves authentication by entering the username and password. There can be some reasons for prefering this method; it's what I use for particular reasons. The MORE secure method involves public key-rings. If you're going to be updating the web pages from just one particular computer or some particular computers, then you definitely want to use RSA key authentication. This is basically as secure as it gets.

By default, the ssh server will allow command shell access as well as sftp access. If you want to restrict this ability, you'll need the "rssh" software package. Basically, rssh provides a limited shell so that an ssh user can only use sftp or rsync or scp (depending on what you allow).

Now, rsync is worth considering. After you get ssh up and running, you might consider using rsync mirroring to update your web site. Rsync is capable of incremental updating, so that only the files which have been created/changed get transfered over. Obviously, this can make a huge difference in how long it takes to transfer over the changes!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
In plesk , I wish to have a backup cron job, ftp back up file to another ftp server? muskiediver Linux - General 6 07-16-2009 04:13 AM
FTP (vsftpd) and web server (apache) TC10284 Linux - Software 2 07-15-2006 07:14 PM
First time with apache need configuration help and a ftp server badgerbox76 Linux - Newbie 7 02-19-2006 09:17 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 05:24 PM
Mapping a network drive from Windows 2k to an ftp, Apache/1.3.27 Server DumbWindow$User General 5 04-08-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration