LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-13-2016, 05:07 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
proftpd - making it ftps or sftp


hi all,

we have a plain ftp server but i want to make it encrypted as end users use it to download/upload material

is it best to go with ftps (ssl) or sftp (ssh)

i have read this walk through

https://www.howtoforge.com/tutorial/...-ubuntu-16-04/

on how to make it an ftps server by just installing openssl, making a key file and editing the config files and opening the extra port 990 TCP, job done

but would sftp be a better more secure solution ?

also when we create a new ftp account we dont add ftp users on the linux server via useradd (for authentication), first we make the directory for the ftp user then add the ftp user to the ftpd.passwd file and in that file is what contains the ftp user account, password for that account and location for there ftp directory ie /mnt/ftp_data/user.a

many thanks

rob

Last edited by robertkwild; 07-13-2016 at 05:09 AM.
 
Old 07-13-2016, 12:09 PM   #2
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
sftp is tightly linked with ssh and uses the ssh port.
Therefore you will most probably have to add accounts for ftp users.

If you want to stick to the authentication that you have now, I would look into ftps.

Also just google ftps vs ftps

Last edited by hoes; 07-13-2016 at 12:10 PM. Reason: Typos
 
Old 07-13-2016, 12:31 PM   #3
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
That link i gave you was for ftps

I now know sftp needs actual user accounts on the ftp server as its ssh

Last edited by robertkwild; 07-13-2016 at 12:34 PM.
 
Old 07-13-2016, 12:56 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by robertkwild View Post
That link i gave you was for ftps. I now know sftp needs actual user accounts on the ftp server as its ssh
This is not necessarily a bad thing, and unless you're throwing things open for EVERYONE via FTP, they'll have user accounts too. And if you're going to set up one guest account anyway, does it matter what service it's attached to?

Set the user accounts to have a chroot'ed environment, and making sure they have no shell, is fairly straightforward:
https://www.howtoforge.com/restricti...debian-squeeze

Debian-related link, but should work on other distros.
 
  


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
FTP question - sftp vs ftps, SSH versus SSL and port numbers ron7000 Linux - Security 2 04-30-2015 12:30 PM
gsftp replacement for SFTP/FTPS? keith.evans Linux - Server 1 10-14-2011 08:47 PM
sftp & ftps configuration in RedHat Linux ravikiran189 Linux - Server 4 03-09-2011 12:22 AM
SFTP or FTPS? Which one is faster? testnbbuser Linux - Server 1 02-10-2008 04:50 PM
Anonymous SFTP in proftpd vrillusions Linux - Software 1 04-09-2004 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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