If you’ve already connected to a server using password authentication, why should you need to authenticate again if you find you need another shell? Answer: you shouldn’t.

Add this to your ~/.ssh/config:

Host *
  controlmaster auto
  controlpath /tmp/ssh-%r@%h:%p

And you’ll be able to quickly reconnect when you already have a session.

About the author

Box UK

Box UK

Box UK's team of simply brilliant thinkers, consultants and application developers mastermind simply brilliant solutions to the world's toughest, performance-critical web and software assignments.

Related content

We're hiring. Let's talk. View available roles