Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

ITerm2 for mac configure Clone session function

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Re-select iTerm2 as the terminal tool under mac

It is found that there is no clone session function similar to SecureCRT by default.

The search engine found a solution, sorted out as follows:

0 Open Preference-> Profiles-> General-> Working Directory-> tick Reuse previous session's directory

0 Edit the local mac ~ / .ssh / config file, add the following, and save and exit:

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

0 logs in to the corresponding machine for the first time, such as the jumping machine, and the corresponding socket file, such as master-$user@$ip:$port, will be generated in the ~ / .ssh directory.

If you log in again, you do not need to enter a password.

0 for convenience, you can add an alias.

Echo "alias jump='ssh xxx@192.168.x.x'" > > ~ / .bash_profilesource ~ / .bash_profile

P.s. If you are using zsh, add it to ~ / .zshrc

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report