Implement clonesession similar to secureCRT in linuxmac

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.