LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-13-2003, 05:17 PM   #1
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
FTP Server: Design Concept?


I would like to design an FTP server that will allow a particular user to download and upload files to there public_html directory for the user's web page. Ideally, I would like to do this using sftp so that the user name and password are encyrpted and can not be intercepted.

My current set up, using vsftpd, does not allow anonymous ftp and only allows one user, who is chrooted, to login to the ftp server. This login is done using ftp and not sftp.

My first question is how do I totally disable the standard ftp access and force everyone to use sftp?

My second question is regarding the html interface. Users can access the ftp page by typing ftp://user@mydomain.com in the url bar. Since the sftp protocol is not a standard protocol it does not work like ftp did in the example above. Believe me-I tried it. Is there a way to get around this?

Also, if anyone sees a way of setting up this SECURE ftp server in a different way, your input would be greatly appreciated.
 
Old 01-13-2003, 08:01 PM   #2
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: FTP Server: Design Concept?

What is your distro? It might be good to put it in your profile

>My first question is how do I totally disable the standard ftp access and force everyone to use sftp?

vsftpd is usually run by xinetd.
grep -H "vsftpd" /etc/xinetd.d/*
will give you the filename. Edit it, change/insert
disable=yes
Restart xinetd ( depends on distro, in RH it is /etc/rc.d/init.d/xinetd restart )

>My second question is regarding the html interface. Users can access the ftp page by typing ftp://user@mydomain.com in the url bar. Since the sftp protocol is not a standard protocol it does not work like ftp did in the example above. Believe me-I tried it. Is there a way to get around this?

No. SFTP is a subsystem of the SSH suite and sftp requests are tunneled thru the SSH port. That means, you have to have SSH ( Secure Shell a standalone service on port 22. see www.openssh.org). Even if you have sshd running, none of the browsers that I know of can forward an sftp request to the right port. SFTP cannot be anonymous. Most part of the security comes from who you're gonna login as!! As of now, to use SFTP, you have to use an sftp client such as the one that comes with the openssh suite or the putty set of tools for windows.

>Also, if anyone sees a way of setting up this SECURE ftp server in a different way, your input would be greatly appreciated.

You can enhance the security of one of the exitsting ftp daemons by using chroot jails etc, but the password will always be transmitted in cleartext, since it was a protocol designed for the decades with not much snooping going around.
 
Old 02-12-2003, 06:02 AM   #3
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
Re: Re: FTP Server: Design Concept?

Quote:
Originally posted by nxny
As of now, to use SFTP, you have to use an sftp client such as the one that comes with the openssh suite or the putty set of tools for windows.
Another good client might WinSCP.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux for Graphic Design, web design, and publishing maelstrom209 Linux - Software 8 07-17-2011 11:35 AM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
conceptual server design question Bostonian Programming 3 12-27-2004 02:22 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:38 PM.

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
Open Source Consulting | Domain Registration