LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-23-2018, 07:36 AM   #1
Triple3
LQ Newbie
 
Registered: Jan 2018
Posts: 2

Rep: Reputation: Disabled
Allow FTP only via SSL


Good morning,

I set up a VSFTPD server with a single virtual user. Everything works fine, I can connect via its public IP inFTPS.

My problem is that I want to disable the unsecured connection i.e. FTP connection. For that I modified the vsftpd.conf with the following parameters :

ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
b]force_local_logins_ssl=YES[/b]

This is where it doesn't work, since when I want to connect via public IP with the YES variable above it doesn't work and returns the message "non anonymous sessions must use encryption online ssl" to me

My question is: How can I restrict my FTP only with FTPS access and make any connection impossible without the SSL layer?
If someone's already set this up, or knows the solution!
Thanks in advance !

Translated with www.DeepL.com/Translator
 
Old 04-24-2018, 03:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,168
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Quote:
This is where it doesn't work, since when I want to connect via public IP with the YES variable above it doesn't work and returns the message "non anonymous sessions must use encryption online ssl" to me

My question is: How can I restrict my FTP only with FTPS access and make any connection impossible without the SSL layer?
You can use the following in order to allow only FTPS connections on port 990:
Code:
implicit_ssl=YES 
listen_port=990
Regards
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid+ SSL FTP possible? rocka Linux - Server 3 03-18-2010 10:20 AM
cURL FTP SSL oneilldavidj Linux - Newbie 2 11-04-2009 11:59 AM
Ftp + Ssl ? maggus Linux - Networking 22 02-21-2007 07:22 AM
ftp over ssl or ftps://.. dsids Linux - Security 4 07-20-2006 11:49 PM
FTP via SSL (TLS) embsupafly Linux - Security 2 03-02-2005 08:47 PM

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

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