Multiplex SSH Sessions
If you ssh into a machine (with password) and proceed to open additional ssh sessions to the same machine, you can multiplex the additional connections over the first one so you are not prompted for a password the second time.
Add the following to your ~/.ssh/config file:
Host *
ControlPath ~/.ssh/master-%r@%h:%p
ControlMaster auto
There is a downside that if the original ssh connection dies, the ther will too.
Written by Scott Woodall
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh
Authors
Related Tags
#ssh
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#