ssh connection sharing

Ever wanted to share ssh connections? You logged in the first time, but when doing the second you’re wondering: “Why didn’t it remember my credentials?”

You can share connections thru a simple config tweak…

Edit your .ssh/config:

Host *
ControlMaster auto
ControlPath ~/.ssh/control_%r@%h:%p

There is a downside however: if the first connection is closed, then all connections are closed…

Related links: here & here

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.