ftp: connect: Connection refused
I nie wiem o co chodzi,próbuje komendy sudo /etc/init.d/vsftpd restart i później próbuje uruchomić serwer i dalej to samo

Kod: Zaznacz cały
nopriv_user=vsftp
ftp_username=ftp
Kod: Zaznacz cały
Stopping FTP server: vsftpd
No /usr/sbin/vsftpd found running; none killed.
Kod: Zaznacz cały
sudo apt-get install vsftpd
Kod: Zaznacz cały
sudo /etc/init.d/vsftpd stop
Kod: Zaznacz cały
pawel@pawel:~$ sudo /etc/init.d/vsftpd stop
* Stopping FTP server: vsftpd
No /usr/sbin/vsftpd found running; none killed.
# Put in /etc/vsftpd.conf
# Don't forget to change samurai into your local username
listen=YES
anonymous_enable=YES
local_enable=YES
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
chown_uploads=YES
chown_username=pawel
ftpd_banner=Welcome to blah FTP service.
secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
anon_root=/home/ftp
Podpinam sie pod ten problem - mimo ze wczesniej juz zalozylem osobny topic... Moze ktos pomoze?tgmaverick pisze:Mam identyczny problem.
Tuz po zainstalowaniu :jak próbuje zatrzymać vsftpdKod: Zaznacz cały
sudo apt-get install vsftpd
Po tej komendzie pojawia się ten sam błąd co powyżej...Kod: Zaznacz cały
sudo /etc/init.d/vsftpd stop
/etc/vsftpd.conf
Kod: Zaznacz cały
# /etc/vsftpd.conf
# Created by Adagio - www.adagio.ovh.org
#
############# sekcja globalna #############
#
# Uruchomienie serwera w trybie standalone:
listen=YES
#
# Port, na ktorym nasluchuje serwer:
listen_port=21
#
# Port, na ktorym laczymy sie z serwerem ftp:
connect_from_port_20=YES
#
# Z jakiego poziomu uzytkownika ma byc uruchamiany serwer:
nopriv_user=vsftp
ftp_username=ftp
#
# Ustawiamy katalog dla chroot'a:
secure_chroot_dir=/var/chroot/vsftpd
#
# Wlaczenie logowania:
xferlog_enable=YES
#
# Logi w czytlenym formacie:
xferlog_std_format=NO
#
# Sciezka do pliku z logami:
xferlog_file=/var/log/vsftpd.log
#
# Maksymalna liczba polaczonych uzytkownikow:
max_clients=5
#
# Maksymalna liczba uzyktownikow mogacych sie polaczyc z tego samego adresu IP:
max_per_ip=2
#
# Czas po ktorym bezczynne sesje sa rozozczane:
idle_session_timeout=600
#
# Timeout dla danych:
data_connection_timeout=120
#
# Banner, ktory bedzie wyswietlany przy kazdym polaczeniu z serwerem:
ftpd_banner=Serwer FTP - vsftpd.
#
# Wyswietlanie informacji (po np. zmiane katalogu wyswietlana informacja o zawartosci):
dirmessage_enable=YES
#
# Ukrywanie plikow o podanym rozszerzeniu:
hide_file={*.avi}
#
# Zabronienie dostepu do katalogow, plikow etc.:
deny_file={*.conf}
#
#
############# sekcja dla userow w systemie #############
#
# Zezwolenie logowania dla lokalnych uzytkownikow:
local_enable=YES
#
# Pozwolenie do zapisu we wlasnym katalogu:
write_enable=YES
#
# Umask (022 jest uzywany przez wiekszosc serwerow ftp):
local_umask=022
#
# Najwyzsza przepustowosc dla userow w systemie:
local_max_rate=35000
#
# Userzy nie moga wychodzic poza swoj katalog domowy:
chroot_local_user=YES
#
# Lista uzytkownikow, ktorzy moga wychodzic poza swoj katalog domowy:
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
#
#
############# sekcja dla anonimowych #############
#
# Zezwolenie logowania anonimowym uzytkownikom:
anonymous_enable=YES
#
# Wyłączamy haslo:
no_anon_password=YES
#
# Pobieranie plikow tylko do odczytu:
anon_world_readable_only=YES
#
# Zabraniamy na uploadowanie plików z serwera:
anon_upload_enable=NO
#
# Ukrywamy wlascicieli udostepnionych plikow (będzie pokazywal "ftp"):
hide_ids=YES
#
# Najwyższa przepustowosc dla anonimowych uzytkownikow:
anon_max_rate=7200
#
############# koniec konfiguracji #############
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
#chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
co tutaj zmieniłeś ??po zmianie pliku, sudo /etc/init.d/vsftpd start nie wurzuca juz komunikatu, jak poprzednio:
Kod: Zaznacz cały
chown_username=pawel
Kod: Zaznacz cały
chown_username=carden
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 21 gości