vsftpd password problem from internet login but not local login
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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):
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.