I'm trying to set up a HTTP tunnel to my home server using httptunnel, but it doesn't seem to work. I thought it was problem with network configuration, but later I saw that it doesn't want to work even on localhost.
I set up httptunnel server that way:
hts --forward-port localhost:22 80
Then I try to connect to it with httptunnel client:
htc --forward-port 5000 localhost:80
Apparently, if I got it right, now everything sent over localhost:5000 is supposed to go over HTTP tunnel and into SSH server. But when I try:
ssh -p 5000 <user>@localhost
It first throws this error:
ssh_exchange_identification: Connection closed by remote host
And after that, both hts and htc silently die, so if I retry - I get a connection refused error, since nothing listens to 5000 anymore:
Wonder what's going wrong?
ssh: connect to host localhost port 5000: Connection refused