Skip to content

Commit a7f94c6

Browse files
gui1117seadanda
andauthored
ssh config suggestion (#22)
* ssh config suggestion * Update README.md * Update README.md --------- Co-authored-by: Dónal Murray <donalm@seadanda.dev>
1 parent ec10bac commit a7f94c6

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,19 @@ It was reported that the `rsync` version shipped with MacOS doesn't support the
8585
```bash
8686
brew install rsync
8787
```
88-
See also [#10](https://github.com/sgeisler/cargo-remote/issues/10).
88+
See also [#10](https://github.com/sgeisler/cargo-remote/issues/10).
89+
90+
### SSH Configuration Suggestion
91+
Establishing a new SSH connection for every remote call takes time. It is recommended to reuse existing SSH sessions by enabling SSH multiplexing. Add an entry like the following to your SSH config file (`~/.ssh/config`):
92+
93+
```sshconfig
94+
Host your-remote-build-machine
95+
HostName your.remote.server
96+
User yourusername
97+
Port p
98+
IdentityFile ~/.ssh/your_private_key
99+
IdentitiesOnly yes
100+
ControlMaster auto
101+
ControlPath ~/.ssh/control:%C
102+
ControlPersist 600
103+
```

0 commit comments

Comments
 (0)