Control Master option in ssh

tags: learning networking

content

What’s ControlMaster

ControlMaster is an ssh option that will create socket file which allows the initial ssh connection to a host to be reused and optionally persist after the initial session has disconnected. SSH - Stanford University

Its effect

  • Once the the setting is in place, we can ssh onto a server, and a socket file will be created
  • and when we open another terminal and ssh onto the same server, it will use that socket file (in other words, use the same connection)
  • the most obvious benefit is, since its the same connection, no authorization is needed again (if username-password auth is used, the benefit will be more significant)

up

down

reference