LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-01-2002, 09:02 PM   #1
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Rep: Reputation: 23
Please help with sftp-server


How do I get the server going? The instructions for it are unbeleievably vague. I honestly don't know where to start. I want to use this as an alternative to the non-secure proftpd.
 
Old 01-02-2002, 12:36 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
i think you would basically just issue the command like you would regular ftp..

sftp username@host

but you need to insert this line in your /etc/ssh2/sshd2_config file:

subsystem-sftp sftp-server

then to submit the modification restart sshd with sshd restart... hope that is what your looking for.. let me know.

Last edited by trickykid; 01-02-2002 at 12:43 AM.
 
Old 01-02-2002, 01:01 AM   #3
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
Thanks alot man I'll be sure to do that. But, where do I specify what files I want to share? Is there a configuration file somewhere?
 
Old 01-02-2002, 01:08 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
i think your mistaking sftp and proftpd... sftp isn't setting up a ftp server on your box like proftpd, its kind of like you ftping to another box to upload or download files... from the command line.
like if instead of just typing ftp hostname, sftp is more secure than the traditional way.

Last edited by trickykid; 01-02-2002 at 01:09 AM.
 
Old 01-02-2002, 01:18 AM   #5
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
Hmm alright let me explain my situation. I run a web server from a linux box with apache, and I would like a secure way for others to login to the linux box to upload and download their web page files. The way I understand is, proftpd is a standard ftp client with no encryption, and sftp-server (part of the sshd daemon), can act as a secure ftp server. Is this correct? And if so, how can I set it up? Sorry for the confusion.
 
Old 01-02-2002, 02:10 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
well, sftp-server is a subsystem of ssh2 i believe. do you have ssh2 setup on your machine ?? you might want to check out some documentation on ssh to get it working right.
 
Old 01-02-2002, 03:47 AM   #7
keymoo
Member
 
Registered: Jan 2002
Location: UK
Distribution: Desktop - Ubuntu, Server - Debian, CentOS
Posts: 72

Rep: Reputation: 15
As I understand it, ProFTPd is an FTP Server and sftp is an FTP client.
 
Old 01-02-2002, 10:30 AM   #8
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
Oh i see....
So if I were to run ProFTPD as the FTP server and connect on port 22 (the ssh port) with an sftp client, secure FTP would work?
 
Old 01-02-2002, 10:59 AM   #9
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
that is what i was trying to say earlier.. i got confused in the mix myself..
 
Old 01-02-2002, 11:21 AM   #10
Jason_25
Member
 
Registered: Nov 2001
Posts: 180

Original Poster
Rep: Reputation: 23
Guys.......I got it to work!
I downloaded PSFTP on my win machine and ftped over to my linux server.....that was too easy. BTW, the sftp-server apparently does not require proftpd at all. It seems to run by itself. I have one final question. If my users sftp to my linux box, are they "jailed" in their current folder? I'm sort of worried about that. Thanks again.
 
Old 03-07-2003, 04:29 PM   #11
ryoung
LQ Newbie
 
Registered: Mar 2003
Posts: 3

Rep: Reputation: 0
I've tested sftp using WinSCP (which is a rather nice tool). When you run this sftp client you can drill down out of the jail area you've set up for your user. I'm running into the same problem...except I'm intending to set up a guest user that's jailed. My guest's can simply go anywhere they wish on the box. Not sure how to control....
 
  


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
How to set up sftp server. gordonbanks Fedora 3 10-01-2004 06:06 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

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

All times are GMT -5. The time now is 06:13 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
Open Source Consulting | Domain Registration