mac下的ssh自动登陆

终端的ssh是标准的OpenSSH client

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

$ cat .ssh/config 

Host *

    ControlMaster auto

    ControlPath ~/.ssh/%h-%p-%r

    ControlPersist yes



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

你可能感兴趣的:(ssh)