LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-28-2004, 02:10 PM   #1
gordonbanks
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
How to set up sftp server.


Hi all, I am just getting my feet wet and I haven't been able to find the info that I need and I'm getting confused on top of that so here goes. I need to set up an FTP server and I would like to use SFTP. I understand the clients would have to use something like Winscp to connect to the ssh server in fedora. How do I set up the users in ssh ( /etc/ssh/users ?) How do I set up the folders for different users or does it just use the users home directory. I wish I could find a good how to on this subject that covers commands and everything. Most of the how to's are really vague. I need this to be fairly secure. Any help would be greatly appreciated.

GB
 
Old 09-28-2004, 02:55 PM   #2
SheldonPlankton
Member
 
Registered: Jun 2004
Posts: 129

Rep: Reputation: 15
If your running linux you probably already have openssh running.
try this ...
Code:
$ /etc/init.d/sshd status
sshd (pid 3904) is running...
For sftp-server (sftp) to work you need this line
Code:
# override default of no subsystems
Subsystem       sftp    /usr/libexec/openssh/sftp-server
to be in your /etc/ssh/sshd_config file.
Remember that FTP is not like SFTP at all. sftp just uses the users' home dirs. If you want your system to be secure I recommend getting a oriely book and checking out the openssh.org home page.
 
Old 10-01-2004, 02:05 PM   #3
gordonbanks
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Original Poster
Rep: Reputation: 0
thanks, I got it up and running, now I have figure out how to chroot the users directories so they can only see what I want them to see. Any ideas on that. I have looked at one way but you may have a better one.

Thanks
 
Old 10-01-2004, 06:06 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
http://www.google.com/search?hl=en&l...tp&btnG=Search

http://www.google.com/search?hl=en&l...rg&btnG=Search


with those searches i found this project, which seems promising:

http://chrootssh.sourceforge.net/


Last edited by win32sux; 10-01-2004 at 06:08 PM.
 
  


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
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
ssh sftp-server dtaju Linux - Security 5 02-23-2004 04:16 PM
sftp-server sopiaz57 Linux - Networking 10 01-05-2004 10:34 AM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM
Please help with sftp-server Jason_25 Linux - Networking 10 03-07-2003 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 04:28 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