View previous topic :: View next topic |
Author |
Message |
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Thu Feb 23, 2012 4:44 pm Post subject: vsftp not sending welcome message? |
|
|
Hi
I have my server running with DYNDNS but if I use FileZilla to access the server via FTP and using the DYNDNS address, the program hangs as it is waiting for a welcome message. If I test using the internal address "sms", everything runs smoothly but the welcome message is not the message I have set up in the vsftp config file?
Any hints would help a lot as I am trying to set up my server as a dropbox for my family utilizing the Open Source program FTPbox
Thanks a lot
Riteman
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Feb 23, 2012 5:39 pm Post subject: |
|
|
Do you have a variable ftpd_banner uncomment in /etc/vsftpd.conf?
default is
ftpd_banner= Welcome to blah FTP service.
did you restart /etc/rc.d/rc.inetd after editing?
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Thu Feb 23, 2012 5:55 pm Post subject: |
|
|
I have uncommented and modified the banner message and restarted the FTP server
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Thu Feb 23, 2012 6:16 pm Post subject: |
|
|
Are you sure, you didn't see welcome message in log files of your ftp client?
Try from bash by typing
ftp 127.0.0.1
Does your welcome message appear?
you should see something like
Code: | root@sms:~# ftp 127.0.0.1
Connected to 127.0.0.1.
220 Welcome to blah FTP service.
Name (127.0.0.1:root): |
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Thu Feb 23, 2012 11:17 pm Post subject: |
|
|
when I look into the exchange of commands between FTPclient and server when accessing inside my network it states
220 SMS FTP Server
which is not the string I have in the conf-file
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Feb 24, 2012 7:33 am Post subject: |
|
|
You need to stop proftpd first, as you have 2 FTP servers running.
to stop proftpd run
/etc/rc.d/rc.proftpd stop
and disable service with
chmod -x /etc/rc.d/rc.proftpd
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Fri Feb 24, 2012 11:36 am Post subject: |
|
|
Thanks
I did what you suggested and as result got "stopping proftpd..", then I used the chmod command and now I cannot log in via FTP at all: The message now is "Connection established waiting for welcome message" also when I log in from within my own network
If I run "ftp sms" from a commandwindow on my windows-PC I get "connected to sms.fritz.box" followed by "Connection closed by remote host"
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Feb 24, 2012 11:43 am Post subject: |
|
|
Have you enable vsftpd through /etc/inetd.conf as described in wiki?
Code: | # Very Secure File Transfer Protocol (FTP) server.
ftp stream tcp nowait root /usr/sbin/tcpd vsftpd |
It sound like you were using proftpd and not vsftpd.
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Fri Feb 24, 2012 11:54 am Post subject: |
|
|
thanks again - peeople reading the Wiki sure have an advantage
I enabled and using "ftpuser" "ftpuser" I get the error "530 Login incorrect." ?
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Feb 24, 2012 12:00 pm Post subject: |
|
|
riteman wrote: |
I enabled and using "ftpuser" "ftpuser" I get the error "530 Login incorrect." ? |
That's normal since that login details refer to proftpd configuration.
There is a section at wiki for vsftpd you might wanna look on how to configure.
http://sms.it-ccs.com/wiki/#LinkTarget_1476
by default vsftpd allow anonymous login so you should be able to login anonymously,
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Fri Feb 24, 2012 12:09 pm Post subject: |
|
|
..strange as the first entry in the conf file says:
ftp_username=ftpuser
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Feb 24, 2012 12:19 pm Post subject: |
|
|
This is from man pages
Code: | ftp_username
This is the name of the user we use for handling anonymous FTP. The home directory of this user is the root of the anonymous
FTP area.
Default: ftp |
ftpuser has no home so path for anonymous is invalid.
If you are going to use vsftpd, either edit default ftp users (ftpuser,webftp) or delete them and add new ones, according to your needs.
Can you post your vsftpd.conf or what you are trying to set up, like paths and users?
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Fri Feb 24, 2012 1:11 pm Post subject: |
|
|
attached my conf file: I now can log into the FTP server from within my network - as soon as I try to login using the dyndns address it resolves the IP address correctly but stops waiting for the welcome message
Changed ftpuser to have a homedir
Description: |
|
 Download |
Filename: |
vsftpd.txt |
Filesize: |
4.49 KB |
Downloaded: |
2117 Time(s) |
|
|
Back to top |
|
gerasimos_h Site Admin
Joined: 09 Aug 2007 Posts: 1757 Location: Greece
|
Posted: Fri Feb 24, 2012 1:21 pm Post subject: |
|
|
Your config looks OK...
Have you set up port forward on your router, to forward ports 20-21 to your local machine?
gerasimos_h
_________________ Superb! Mini Server Project Manager
http://sms.it-ccs.com |
|
Back to top |
|
riteman Member
Joined: 01 Feb 2011 Posts: 27
|
Posted: Fri Feb 24, 2012 1:22 pm Post subject: |
|
|
only port 21
|
|
Back to top |
|
|