View previous topic :: View next topic |
Author |
Message |
Peter_ n00b
Joined: 17 Dec 2005 Posts: 16
|
Posted: Wed Jan 25, 2006 4:01 am Post subject: sftp connection to vsftpd refused [Solved] |
|
|
Hi all,
I hope someone can enlighten me.
I am trying to setup a vsftpd server to only allow local users to connect via sftp. I have followed the wiki for vsftp and vsftpd.conf man page. When I test the server with WinSCP3 I get "connection refused".
I can ssh into the server and use scp with no problems
I have emerged vsftpd with ssl. I am running shorewall but have stopped shorewall to sort out this problem (I have eth0 in routestopped).
My vsftpd.conf is
Code: | #General control
background=YES
listen=YES
write_enable=YES
dirmessage_enable=YES
xferlog_enable=YES
#Connections
connect_from_port_20=YES
session_support=YES
max_clients=50
max_per_ip=4
#Users
local_enable=YES
text_userdb_names=YES
chroot_local_user=YES
#Anonymous users
anonymous_enable=NO
#SSL
ssl_enable=YES
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_sslv3=YES
ssl_sslv2=YES
ssl_tlsv1=YES
rsa_cert_file=/etc/ssl/certs/vsftpd.pem |
I would appreciate any pointers.
Last edited by Peter_ on Wed Jan 25, 2006 9:51 am; edited 1 time in total |
|
Back to top |
|
|
anonybosh Guru
Joined: 20 Nov 2005 Posts: 324
|
Posted: Wed Jan 25, 2006 6:38 am Post subject: |
|
|
Are you sure that you were trying to connect to the correct port (it seems in the setup for vsftpd, 20 instead of the 'standard' 22)? |
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Wed Jan 25, 2006 7:24 am Post subject: |
|
|
sftp is part of ssh and is something completely thant ftp.
vsftpd is an ftp + ftps server - little but important difference. ftps is plain ftp with ssl encryption.
HTH _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
|
Peter_ n00b
Joined: 17 Dec 2005 Posts: 16
|
Posted: Wed Jan 25, 2006 9:50 am Post subject: |
|
|
mmm... Thanks Think4US11 for pointing out the minor difference.
I found and downloaded an FTP client that supports ssl and funny enough everything works.
Thanks for your reply as well liber8ate. |
|
Back to top |
|
|
|