If you are careful, you are ~ The/. ssh/directory contains the sock file of master. It records the machine you are currently logged on to. in this way, you log on to the same machine and reuse the same link.
Create a new file in the. ssh folder under your login account: config.
Cd ~ /. Ssh
Vi config
In the config file, the content is:
Host *
ControlMaster auto
ControlPath ~ /. Ssh/master-% r @ % h: % p
Re-open the terminal. for the first time, you still need to enter the password. for the second ssh login to the same machine, you do not need to enter the password. the clone session method is the same as that of secureCRT.
The property of this file is set to 600 on my side. it is normal if this attribute is not set.
If you are careful, you are ~ The/. ssh/directory contains the sock file of master. It records the machine you are currently logged on to. in this way, you log on to the same machine and reuse the same link.