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.
Want to find out more about the tools our dev community have been exploring? Take a look at our regular tech round-up series - and sign up to our mailing list to have them delivered direct to your inbox.