Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sftp connection to vsftpd refused [Solved]
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
Peter_
n00b
n00b


Joined: 17 Dec 2005
Posts: 16

PostPosted: Wed Jan 25, 2006 4:01 am    Post subject: sftp connection to vsftpd refused [Solved] Reply with quote

Hi all,
I hope someone can enlighten me. 8O

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
View user's profile Send private message
anonybosh
Guru
Guru


Joined: 20 Nov 2005
Posts: 324

PostPosted: Wed Jan 25, 2006 6:38 am    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Wed Jan 25, 2006 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Peter_
n00b
n00b


Joined: 17 Dec 2005
Posts: 16

PostPosted: Wed Jan 25, 2006 9:50 am    Post subject: Reply with quote

mmm... :roll: 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
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