Can't get ssh and wu-ftpd to work together

From: Richard Brandt (richard1.brandt_at_attbi.com)
Date: 10/26/03


Date: Sun, 26 Oct 2003 17:16:06 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
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



Relevant Pages

  • Cant get ssh and wu-ftpd to work together
    ... tunneling the control channel thru ssh. ... I see that the client does try to connect to the server at the right address ... class Test_guest_class guest * ... log transfers anonymous,guest,real outbound ...
    (comp.os.linux.networking)
  • Cant get ssh and wu-ftpd to work together
    ... tunneling the control channel thru ssh. ... I see that the client does try to connect to the server at the right address ... class Test_guest_class guest * ... log transfers anonymous,guest,real outbound ...
    (comp.security.ssh)
  • Re: Testing Platforms
    ... I get the concept of a VM residing on a server, ... Now create a guest, which is just a matter of allocating about ... one final note on virtualization. ... management as part of a free initial consultation. ...
    (comp.databases.pick)
  • Re: How to cennect to a windows network?
    ... box to "see" a home directory, ... map to guest = Bad User ... server string = Samba Server ... directory mask = 0750 ...
    (alt.os.linux.suse)
  • Re: NIS+ User addtion
    ... # nisclient -c guest ... You will be adding DES credentials in domain aaa.bbb.ccc. ... Now I tried to login to the client (or master server) using the new id. ...
    (comp.unix.solaris)