Can't get ssh and wu-ftpd to work together
From: Richard Brandt (richard1.brandt_at_attbi.com)
Date: 10/26/03
- Next message: vagabond: "vnc over ssh"
- Previous message: FiNgErZ: "Market Confusion Solved"
- Next in thread: Darren Tucker: "Re: Can't get ssh and wu-ftpd to work together"
- Reply: Darren Tucker: "Re: Can't get ssh and wu-ftpd to work together"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 26 Oct 2003 18:42:45 GMT
I am trying to follow the example in the "SSH-The Secure Shell" book for
tunneling the control channel thru ssh.
I setup the initial tunnel per the example
client% ssh -L2001:server:21 server
This works fine
client% ftp -vd localhost 2001
This also works fine (login has no problems)
but when I try to do any commands like "ls" it fails with
ftp:setsockopt (ignored ): permission denied
---> PASV
Entering passive mode(192,168,1,50,232,45)
ftp:connect: Connection refused
I see that the client does try to connect to the server at the right address
and port but gets a RST
When I run netstat on the server it shows LISTENING with the local address
127.0.0.1:59437
So I'm guessing the connection is refused since the server is just listening
on the loopback
But I don't know what else to change.
I have wu-ftpd 2.6.1-18 on Linux
ftpaccess looks like this
class Test_guest_class guest *
limit Test_guest_class 2 Any /var/ftp/too-many.msg
# noretrieve /*
loginfails 2
private no
banner /var/ftp/banner.msg
hostname ftpserver
email root@localhost
message /welcome.msg LOGIN
message .message CWD=*
readme README* LOGIN
readme README* CWD=*
chmod no anonymous,guest
delete no anonymous,guest
overwrite no anonymous,guest
rename no anonymous,guest
umask no guest
passwd-check rfc822 warn
log commands guest
log security guest
log transfers anonymous,guest,real inbound
log transfers anonymous,guest,real outbound
guestgroup rftpusers
limit-upload guest 10000
limit-download guest 1
file-limit in 1 Test_guest_class
file-limit out 0 Test_guest_class
pasv-allow guest *
port-allow all
passive address 192.168.1.50 0.0.0.0/0
Richard Brandt
- Next message: vagabond: "vnc over ssh"
- Previous message: FiNgErZ: "Market Confusion Solved"
- Next in thread: Darren Tucker: "Re: Can't get ssh and wu-ftpd to work together"
- Reply: Darren Tucker: "Re: Can't get ssh and wu-ftpd to work together"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|