SSH Multiplexing & other OpenSSH Tricks
symkat.com
symkat.com
I suppose I should just write a script that perl -pi -e 's/KeepAlive yes/KeepAlive no/' .ssh/config or similar, but it still seems ... annoying.
ssh -o "KeepAlive no" example.com
Host *.whatever.com
ServerAliveInterval 900
Host *.whatsup.com
ServerAliveInterval 60PuTTY can do that. It's GUI though.
~/.ssh/config
Host serverWith
HostName server.home.net
OptionBLA yes
Host serverWithout
HostName server.home.net
OptionBLA no
It also has autocomplete, so you can type ssh server<TAB>ssh server remotecommand | localcommand
* set up a machine with all packages installed on some (debian/ubuntu) server: ssh server dpkg --get-selections| cut -f1 | xargs sudo apt-get install
* compare output of commands on two machines diff <(command) <(ssh server command)
* test/configure software on a local machine, plugging in its input from the roduction machine where it will be installed once ready
* avoid installing software on the server entirely; pull in the remote output and wrangle it locally (obv. not so good for high volumes)
* think a bug can be fixed by upgrading some software? try it on a test machine, pipe in the required input, and see
My workplace sometimes suffers from serious problems and because TCP allocates resources based on number of connections, I'm pretty sure I can improve the situation by establishing 2 tcp connections for the terminal.
That TTL thing is handy too, I'm sure I had some understanding of it previously, but reading the article made me check my settings and made me realize my timeouts were ridiculously low so even short disconnections killed my session.
In firefox the about:config variable is "network.proxy.socks_remote_dns". Set it to true.
Host protected_machine other_protected_machine
ProxyCommand /usr/bin/ssh gateway.example.com /bin/nc -w 3700 %h %p
(Assumes you have /bin/nc installed on your gateway.)