Hi,
I'm trying to connect ftp over ssh port forwarding to a sever(UnixC) behind FireWall(F/W). here's my env and question.
UnixA(SSH Client) ----F/W ---- UnixB(SSH Svr) ---- UnixC (FTP, 21)
UnixA wants to connect ftp service of UnixC via SSH port forwarding on UnixB.
Unix A, terminal
$ssh -L10021:UnixC:21 ID@UnixB
Logged in UnixB with SSH and from new session on UnixA I tried these commands below.
% telnet localhost 10021
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection to localhost closed by foreign host.
% ftp localhost 10021
Connected to localhost.
421 Service not available, remote server has closed connection
ftp>