Thanks, but I already tried that with little success. I had the following in my ssh config file:
Host test
Hostname shell.server.com
User user
LocalForward 8332 some.server.com:8332
When I log in to
user@shell.server.com I can do:
curl --user myrpcuser --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwork", "params": [] }' -H 'content-type: text/plain;' http://some.server.com:8332/
but if I run
ssh test or ssh -L 8332:some.server.com:8332 user@shell.server.com
then in a different shell:
curl --user myrpcuser --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getwork", "params": [] }' -H 'content-type: text/plain;' http://localhost:8332/
I get
curl: (7) couldn't connect to host
Is there some bitcoin proxy or similar I could run on shell.server.com so I could specify port 80 which the proxy would forward to some.server.com. I guess I might be able to do it with iptables...