Mac terminal new tag/window ssh re-enter password problem

Source: Internet
Author: User

Mac terminal by default in the opening of a new Tab/window need to re-enter the password ssh, very inconvenient. This article completes the setting in the Mac, realizes the clone session function in the Securecrt/xshell, namely opens a terminal SSH connection without re-entering the password.

The principle is very simple, open an SSH connection in the background, and later need to use SSH to the same host, the direct use of the connection socket file, no longer create a connection, the same, do not need to authenticate the user.

It is off by default and can be opened in ~/.ssh/config, adding the following code snippet:

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

You can do it.

Reference blog:
http://www.fwolf.com/blog/post/385

Mac terminal new tag/window ssh re-enter password problem

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.