From ca79e2a16fe4fd2571f3eb4f4aa0e5886284c9d3 Mon Sep 17 00:00:00 2001 From: Guillaume Thiolliere Date: Fri, 14 Feb 2025 17:47:53 +0900 Subject: [PATCH 1/3] ssh config suggestion --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d39bd0b..adfad6b 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 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 remote-build + HostName your.remote.server + User yourusername + Port p + IdentityFile ~/.ssh/your_private_key + IdentitiesOnly yes + ControlMaster auto + ControlPath ~/.ssh/control:%C + ControlPersist 600 +``` From 8d4a62bc34f14dcb38a6984d4bea5731fad87114 Mon Sep 17 00:00:00 2001 From: Guillaume Thiolliere Date: Fri, 14 Feb 2025 17:51:02 +0900 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index adfad6b..cc94e4c 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ See also [#10](https://github.com/sgeisler/cargo-remote/issues/10). Establishing 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 remote-build +Host your-remote-build-machine HostName your.remote.server User yourusername Port p From 2edc79357741e9440466cad4e1b9bdd7de4cf00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=B3nal=20Murray?= Date: Fri, 14 Feb 2025 10:41:34 +0000 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc94e4c..14af1c0 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ brew install rsync See also [#10](https://github.com/sgeisler/cargo-remote/issues/10). ### SSH Configuration Suggestion -Establishing 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`): +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