diff --git a/README.md b/README.md index d39bd0b..14af1c0 100644 --- a/README.md +++ b/README.md @@ -85,4 +85,19 @@ It was reported that the `rsync` version shipped with MacOS doesn't support the ```bash brew install rsync ``` -See also [#10](https://github.com/sgeisler/cargo-remote/issues/10). \ No newline at end of file +See also [#10](https://github.com/sgeisler/cargo-remote/issues/10). + +### SSH Configuration Suggestion +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`): + +```sshconfig +Host your-remote-build-machine + HostName your.remote.server + User yourusername + Port p + IdentityFile ~/.ssh/your_private_key + IdentitiesOnly yes + ControlMaster auto + ControlPath ~/.ssh/control:%C + ControlPersist 600 +```