Miscellaneous SSH notes
You really want to have passwordless ssh set up.
Quitting hung session
Firstly you haven’t pressed ctrl-s have you? Try pressing ctrl-q
If all else fails type “[Enter] ~.” with the full stop. More pleasant than killing your whole terminal. If you were running your session within screen/tmux you might be able to recover it.
I have recently (March 2006) found out about socks proxies with ssh. Here are my rough notes on that. First do:
ssh -D 1080 remote.host.name
Then you can access the internet through the socks proxy running on localhost:1080 and anyone you connect to will think you are coming from the computer you are ssh’d into.
If you just want this for web browsing it is probably easier to configure your browser to use localhost port 1080 as your SOCKS 5 proxy. If you need to access internal sites with hostnames that do not resolve elsewhere on the internet you will also need to configure your browser to use SOCKS for DNS. In firefox set the proxy in (Edit|Preferences|General|Connection Settings). Then type about:config<ENTER> in the location bar and turn on the network.proxy.socks_remote_dns option. Now all your web browsing (including https://) will go via the remote host.
If you do this sort of tunneling a lot and need to quickly toggle proxy settings then the QuickProxy firefox extension, or an extension like it, might help. I previously recommended SwitchProxy, which has more features but caused opening new windows in firefox to slow down. This might have been fixed, but I haven’t checked it or any of the other alternatives recently.
I have verbose notes on using ssh under windows, traditional port forwarding and the like here.