Reusing ssh connections

create the directory

$ mkdir -p ~/.ssh/controlmasters/

edit your ssh config file

$ vim ~/.ssh/config

at the top (first line, first config) add this

Host *
  ControlPath ~/.ssh/controlmasters/%r@%h:%p
  ControlMaster auto
  ControlPersist yes

that's it!

references


Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!

[s]