Hi,
Try as I might I cannot connect to the ftp port on my remote server (running RH8 and vsFTPd) through a ssh tunnel. I can ftp to the server if I just ftp directly to the sever but thats not acceptable for security reasons
I've created the tunnel correctly:
ssh -l user -f -N -L 21:host.net:21 host.net
And doubled checked by making a different ftp tunnel to a server here at work and ftping through the tunnel to that server worked. I also made a tunnel to my server's port 22 (ssh) and telnetted to it and it connected. But if I try to ftp to 'localhost' I get this message:
Trying ::1...
ftp: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
And then it times out. I also get this in my messages.log:
vsftpd: warning: can't get client address: Bad file descriptor
But it doesn't happen every time my login fails so it may not have anything to do with it.