I have a web server running on port 8000 on remotehost. I set up a tunnel from localhost:
ssh -L 8888:localhost:8000 remotehost
However when I try to request localhost:8888 I get:
channel 3: open failed: connect failed: Connection refused
on the terminal. Why does the connection fail? How should I fix it?