Skip to main content

Thread: ftp connection refused


hi, have installed vsftpd server on ubuntu command:
sudo apt-get install vsftpd
, edit in configuration file :
vi /etc/vsftpd.conf
doing this:
anonymous_enable=no
enable local users:

local_enable=yes
ftpuser should able write data:

write_enable=yes
port 20 need turned off, makes vsftpd run less privileged:

connect_from_port_20=no
chroot everyone:

chroot_local_user=yes
set umask 022 make sure files (644) , folders (755) upload proper permissions.

local_umask=022

after did:
sudo useradd -d /var/www/path/to/your/dir -s /usr/sbin/nologin ftpuser

sudo passwd ftpuser

these commands:
sudo chown -r ftpuser /var/www/path/to/your/dir
sudo chmod 775 /var/www/path/to/your/dir

give me following error:
chown: cannot access `/var/www/path/to/your/dir': no such file or directory

after entered:
vi /etc/vsftpd.userlist

, add :
ftpuser

after edit configuration file again:
vi /etc/vsftpd.conf

# list of users give access
userlist_file=/etc/vsftpd.userlist

# list on
userlist_enable=yes

# not list of users deny ftp access
userlist_deny=no

enter shells:
vi /etc/shells
, add following line :
/usr/sbin/nologin

created ftpgroup , add ftpuser
sudo addgroup ftpusers
sudo usermod -gftpusers ftpuser

finally, :
service vsftpd start

, when tried connect ftp server using command:
ftp <ip address>

i've got:
ftp: connect: connection refused
ftp>

plzz can me!!!
thank lot

are sure need ftp, specifically? if you're interested in transferring files securely, you'll want sftp instead of ftp. it's way past time stop using ftp.

fastest , easiest way sftp install package openssh-server , no further configuration needed. can uninstall ftp. packages nautilus, dolphin , filezilla include built-in sftp clients.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [ubuntu] ftp connection refused


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account