Speed Up SSH
Recently I worked on a project where executing remote commands is very slow to start. This is expected because an SSH connection has to be established first.
$ time ssh server exit
ssh server exit 0.04s user 0.01s system 0% cpu 7.901 total
It took nearly 8 seconds to ssh into server.
That’s slow!
After a bit of googling, there is an elegant way to speed this up. Simply put this at the bottom of your ~/.ssh/config.