Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-01-2002, 09:02 PM
|
#1
|
Member
Registered: Nov 2001
Posts: 180
Rep:
|
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.
|
|
|
01-02-2002, 12:36 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
01-02-2002, 01:01 AM
|
#3
|
Member
Registered: Nov 2001
Posts: 180
Original Poster
Rep:
|
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?
|
|
|
01-02-2002, 01:08 AM
|
#4
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
01-02-2002, 01:18 AM
|
#5
|
Member
Registered: Nov 2001
Posts: 180
Original Poster
Rep:
|
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.
|
|
|
01-02-2002, 02:10 AM
|
#6
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
01-02-2002, 03:47 AM
|
#7
|
Member
Registered: Jan 2002
Location: UK
Distribution: Desktop - Ubuntu, Server - Debian, CentOS
Posts: 72
Rep:
|
As I understand it, ProFTPd is an FTP Server and sftp is an FTP client.
|
|
|
01-02-2002, 10:30 AM
|
#8
|
Member
Registered: Nov 2001
Posts: 180
Original Poster
Rep:
|
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?
|
|
|
01-02-2002, 10:59 AM
|
#9
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
that is what i was trying to say earlier.. i got confused in the mix myself..
|
|
|
01-02-2002, 11:21 AM
|
#10
|
Member
Registered: Nov 2001
Posts: 180
Original Poster
Rep:
|
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.
|
|
|
03-07-2003, 04:29 PM
|
#11
|
LQ Newbie
Registered: Mar 2003
Posts: 3
Rep:
|
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....
|
|
|
All times are GMT -5. The time now is 06:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|