Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't change directory or transfer files with vsftpd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 64
Location: Jiangsu/China

PostPosted: Fri Mar 29, 2019 2:38 pm    Post subject: Can't change directory or transfer files with vsftpd Reply with quote

I've installed vsftpd on my computer with Gentoo Linux. I'm connecting to it from localhost. There seems to be nothing wrong with networking or privileges, since I can log into the ftp server and change the current directory. However, when I try to use "ls", "get" or "put", the ftp client claims error 421 Service not available. Here's an example:

Code:

╭─ag@AprilGrimoire ~ 
╰─$ ftp 127.0.0.1
Connected to 127.0.0.1.
220 Welcome to blah FTP service.
Name (127.0.0.1:ag):
530 Please login with USER and PASS.
530 Please login with USER and PASS.
SSL not available
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd OI
250 Directory successfully changed.
ftp> cd 2019
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
500 OOPS: 421 Service not available, remote server has closed connection
ftp> %


Thanks in advance :D

----- Update -----
I switched to proftpd, and the problem disappeared. I think it's a vsftpd problem. However, I still wonder why it's appearing.
_________________
Think twice,code once.


Last edited by PhoenixStarEclipse on Fri Mar 29, 2019 4:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
mike155
l33t
l33t


Joined: 17 Sep 2010
Posts: 989
Location: Frankfurt, Germany

PostPosted: Fri Mar 29, 2019 3:14 pm    Post subject: Reply with quote

Is there a firewall between your FTP client and your FTP server?

Try passive mode: Enter "passive" after you logged in:

Code:
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode on.
ftp> ls
227 Entering Passive Mode (XXXXXXXXX).
150 Here comes the directory listing.
drwxr-xr-x   17 ftp      ftp          4096 Dec 24  2016 XXXXXX
...
226 Directory send OK.
ftp>
Back to top
View user's profile Send private message
PhoenixStarEclipse
n00b
n00b


Joined: 11 May 2017
Posts: 64
Location: Jiangsu/China

PostPosted: Fri Mar 29, 2019 3:29 pm    Post subject: Reply with quote

mike155 wrote:
Is there a firewall between your FTP client and your FTP server?

Try passive mode: Enter "passive" after you logged in:

Code:
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> passive
Passive mode on.
ftp> ls
227 Entering Passive Mode (XXXXXXXXX).
150 Here comes the directory listing.
drwxr-xr-x   17 ftp      ftp          4096 Dec 24  2016 XXXXXX
...
226 Directory send OK.
ftp>


Thanks for helping, but it didn't work. I think that there's no firewall since I'm visiting directly from 127.0.0.1.
I switched to proftpd and it workd, so I guess it's a vsftpd problem.
_________________
Think twice,code once.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum