LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-06-2018, 09:30 PM   #1
theoriginaltoad
LQ Newbie
 
Registered: Jun 2018
Posts: 9

Rep: Reputation: Disabled
Question vsftpd password problem from internet login but not local login


vsftp problems logging in via external or internet ip
------------------------------------------------------

I have installed vsftpd on linux mint 18.3 64bit. I am attempting to setup an ftp server at home so that I can access my files from work.

Testing the ftp login with filezilla appears to work fine using my local ip e.g 192.168.1.12, (from an admin priv user on the same pc hosting the ftp server) and i see my home directory. There are no other ftp servers running on other pcs on my network. The filezilla output is as follows:

I log in as 'toad' with password

Status: Connecting to 192.168.1.12:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Server does not support non-ASCII characters.
Status: Logged in
Status: Retrieving directory listing...
Status: Directory listing of "/home/toad" successful

But my problem is that I can't log in using my internet ip e.g 101.98.xx.xx from the same pc. I receive a '530 Login incorrect' message in filezilla, even though the password and username are correct. This is the same for all accounts that i try to ftp in with. The filezilla output is as follows:

I log in again as 'toad' with password

Status: Connecting to 101.98.xx.xx:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command: USER daniel
Response: 331 Password please.
Command: PASS ************
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server

I have set vsftpd.conf to verbose ftp logging in an attempt to see what the 'real' reason for login rejection is in the /var/log/vsftpd.log.

/var/log/vsftpd.log recorded my 192.168.1.12 login ftp messages, but will not record any traffic if i try to log in using my internet ip 101.98.xx.etc.

My router management page tells me that 'Services Access Control' list port 21 for ftp is enabled for LAN and WAN.

My vsftpd.conf file is as follows (i've removed the #'d lines for clarity):

listen=YES
anonymous_enable=NO
local_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
xferlog_std_format=NO
log_ftp_protocol=YES
ascii_upload_enable=YES
ascii_download_enable=YES
ftpd_banner=TOADS FTP SERVER.
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=ftp
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO


Your help would be greatly appreciated,

Regards,

Daniel
theoriginaltoad
 
Old 06-07-2018, 10:04 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Welcome to LinuxQuestions.

While this isn't a direct answer to your question it would be easier and more secure to access your home server using sftp instead of ftp.

You will need to start the ssh server as well as forward port 22 in your router to your computer's LAN IP address. You can still use filezilla to access your files with the same username and password except your using sftp instead of ftp.
 
Old 06-08-2018, 05:00 PM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I log in again as 'toad' with password

Status: Connecting to 101.98.xx.xx:21...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Command: USER daniel
Response: 331 Password please.
Command: PASS ************
Response: 530 Login incorrect.
Error: Critical error: Could not connect to server
Apart from using sftp/scp for security reasons as michaelk suggested, I see that while you said that you're trying to connect as user "toad", you're in fact using the "daniel" username.
 
Old 06-25-2018, 04:09 AM   #4
theoriginaltoad
LQ Newbie
 
Registered: Jun 2018
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Apart from using sftp/scp for security reasons as michaelk suggested, I see that while you said that you're trying to connect as user "toad", you're in fact using the "daniel" username.
Thank you Bathory, I have tried my toad user instead of daniel but still problems. But I have decided to move on to using sftp and ssh as suggested, I can use these locally on my network but again the same sort of problem. I will post my ssh -vvv output on another thread.

Thanks again
 
  


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
[SOLVED] vsftpd anonymous login w/ bind mount for local repo gregfmartin Linux - Server 3 04-13-2018 08:34 AM
Remote ssh login (passwords useless), and local login (using password) linuxStudent11 Linux - Security 1 01-09-2013 01:30 PM
[SOLVED] SSH login problem for additional users after password-less login setup uncle-c Linux - Newbie 3 02-10-2010 12:51 PM
Cannot login with local user in vsftpd smithjb Linux - Software 4 01-12-2009 05:01 AM
Unable to login as local user with vsftpd running on the server kairamr Linux - Newbie 1 06-09-2004 02:25 PM

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

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