Skip to content

Commit

Permalink
add ssh config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kugouming committed Jan 19, 2016
1 parent 3c78a14 commit 97b027c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions ssh/mac_ssh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Mac 电脑配置ssh,使其一天生效

## 修改配置文件

``` bash
~/.ssh/config
```

## 配置文件中代码

``` bash
# 历史配置
#Host *
#ControlPath ~/.ssh/master-%r@%h:%p
#ControlPath /tmp/ssh_mux_%h_%p_%r
#ControlMaster auto

# 最新配置 ssh 到门神,后续不再需要输入登录门神的密码
ServerAliveInterval 60
host *
ControlMaster auto
ControlPath ~/.ssh/master-%r@%h:%p
ControlPersist yes

```

0 comments on commit 97b027c

Please sign in to comment.