Date
Oct. 18th, 2024
 
2024年 9月 16日

Post: OS X : SSH 克隆会话

Today is the A Memorial Day

OS X : SSH 克隆会话

Published 12:09 Sep 16, 2015.

Created by @ezra. Categorized in #Programming, and tagged as #macOS.

Source format: Markdown

Table of Content

TerminalSSH是标准的OpenSSH client

如果需要克隆会话功能,可以通过配置打开:

$ cat .ssh/config
Host *
    ControlMaster auto
    ControlPath ~/.ssh/%h-%p-%r
    ControlPersist yes

这样每连上一个服务器都会自动在~/.ssh/下创建一个socket文件,下次用相同用户名、端口、主机名进行连接就会自动复用

Pinned Message
HOTODOGO
The Founder and CEO of Infeca Technology.
Developer, Designer, Blogger.
Big fan of Apple, Love of colour.
Feel free to contact me.
反曲点科技创始人和首席执行官。
开发、设计与写作皆为所长。
热爱苹果、钟情色彩。
随时恭候 垂询