I've just set up a new 10.04 server and can't get the tunneling to work.
local machine
ssh -L 9090:localhost:9090 [email protected]
login success, but thereafter trying tunnel from local browser, http://127.0.0.1:9090
echo at server terminal:
channel 3: open failed: connect failed: Connection refused
auth.log
:
sshd[24502]: error: connect_to localhost port 9090: failed.
iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Trying 9090
at server (links http://xx.xxx.xx.xx:9090
works)
sshd_config
is identical to previous 8.04 server, working fine.
What's going on?
telnet localhost 9090
? Also, you mentioned iptables in your question. Did you have any NAT rules? You can paste the output ofiptables -L
.