System = CentOS / Apache 2.0 / HTML files location = /var/www/html Nat'd IP - ports 80, 20, 21 already opened & routed to internal ip. I desperately need the quick & dirty solution. I need a setup where one user can ftp from another desktop (windows) to upload new website files. I currently have CuteFTP, but will use anything needed at this point. I need to try to test this today. VERY new to linux, I am completely bogged down trying to learn command-line syntax. Thanks in advance, Beth -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20040923/41f99830/attachment-0002.html>
Beth Curotto wrote:> System = CentOS / Apache 2.0 / HTML files location = /var/www/html > > Nat'd IP - ports 80, 20, 21 already opened & routed to internal ip. > > I desperately need the quick & dirty solution. > > I need a setup where one user can ftp from another desktop (windows) to > upload new website files. I currently have CuteFTP, but will use > anything needed at this point. > > I need to try to test this today. VERY new to linux, I am completely > bogged down trying to learn command-line syntax. > > Thanks in advance, Beth >Beth: I use pure-ftpd. I've found this ftp server to be the easiest and most secure to set-up for Redhat systems. Go to: http://www.pureftpd.org/ The Redhat binary (rpm) version can be downloaded here: ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/binaries/redhat/ You'll probably want the "i686" version. Install the rpm package (you'll need to be root to do this): # rpm -Uvh pure-ftpd-1.0.19-1.i686.rpm And that's it. Michael
On 23 Sep 2004 at 11:22, Beth Curotto wrote:> System = CentOS / Apache 2.0 / HTML files location = /var/www/html > > Nat'd IP - ports 80, 20, 21 already opened & routed to internal ip.Port 20 outgoing, you mean? Shouldn't need to be any connections *to* port 20 on the FTP server.> I desperately need the quick & dirty solution. > > I need a setup where one user can ftp from another desktop (windows) to > upload new website files. I currently have CuteFTP, but will use anything > needed at this point.First of all, make sure the vsftpd package is installed and running. (rpm -q vsftpd) If it's not, it'll be on your install media or can easily be acquired with "yum -y install vsftpd" Then do "service vsftpd start" to start the FTP server. Are you just trying to prove the concept today, or do you need your user to be able to upload files to the document root right now? If the former, simply create a new user account and set a password for it. The vsftpd server will immediately allow logins to the users' home directory with their username/password. Any files placed in public_html/ in a home directory should be automatically mapped by apache to httpd://[server.dom.ain]/~[userid]/. If you need to upload files directly to the document root, things get a little more complicated, and there's more than one approach depending on how security-conscious you need to be. ---- Nels Lindquist <*> Information Systems Manager Morningstar Air Express Inc.
As you can see from the other posts, ftp is tricky. Someone already suggested that you use scp/ssh which is what I would recommend. There is a decent windows program called winscp which is similar to windows ftp programs. There is also a command line tool from putty called pscp. When it comes to NAT, you need to look at both the internal and external networks separately. Firstly, assuming you want the external network (The internet) to connect to your web server, you need to allow port 80. If you want the external network to talk to your ssh server (for scp) then you need port 22 as well. If ssh is only for internal then you don't need to worry about NAT. Also (AFAIK) if you are using NAT then there should be a 1 to 1 mapping from internal to external IP addresses, in which case it is quite likely that all ports are translated and forwarded anyway. If you mean you have a 1 to many (Only one IP on the internet) then you need to nominate which IP of the many to forward connections to (port forwarding). None of this has anything to do with a command line and everything to do with reading the manuals/FAQs/HOWTOs etc. John. Beth Curotto wrote:> System = CentOS / Apache 2.0 / HTML files location = /var/www/html > > Nat'd IP - ports 80, 20, 21 already opened & routed to internal ip. > > I desperately need the quick & dirty solution. > > I need a setup where one user can ftp from another desktop (windows) to > upload new website files. I currently have CuteFTP, but will use > anything needed at this point. > > I need to try to test this today. VERY new to linux, I am completely > bogged down trying to learn command-line syntax. > > Thanks in advance, Beth > > > >-- John Newbigin - Computer Systems Officer School of Information Technology Swinburne University of Technology Melbourne, Australia http://www.it.swin.edu.au/staff/jnewbigin