SSH tunneling through putty not working

Posted by Grakus on Thu 21 Aug 2008 11:28 PM — 4 posts, 18,614 views.

#0
Hello,

I'm attempting to set up an ssh tunnel through a ssh shell using putty, in order to use mushclient to connect to a mud.

putty -L 4000:arandommud:9999 -ssh sshshell.com -l username -pw password

This -should- set up a tunnel whereby if I open mushclient and type in 'localhost' port 4000, I should connect.

However, it just closes the connection as suddenly as it opens it and states that the server has closed the connection. This happens with me logged into the shell, at the prompt, and also from me logged into the mud through the shell. Sometimes it will just hang till you type something and then close.

I did a netstat -a and my pc is listening on port 4000, so I should locally see it.

What am I doing wrong here?
USA #1
if you telnet to localhost:4000 do you connect?
#2
Negative. It's very perplexing. It should work.
Australia Forum Administrator #3
Have you read this? ...

http://www.gammon.com.au/mushclient/stunnel.htm