Skip to content

Commit b2171de

Browse files
committed
add trick to README to speedup checkouts via ssh
1 parent 5fdc88e commit b2171de

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,23 @@ It also allows hosting of private packages and speeds up the whole downloading p
6868

6969
Another alternative is to look into [Satis](https://github.com/composer/satis), bare git mirrors and repository aliasing.
7070

71+
Another way to speedup downloads over ssh(also interesting for satis users) is to improve your ssh configs.
72+
At least for newer versions of openSSH you can add the following to your ```.ssh/config``` to reuse previous connections.
73+
```
74+
Host *
75+
ControlPath ~/.ssh/controlmasters/%r@%h:%p
76+
ControlMaster auto
77+
ControlPersist 10m
78+
```
79+
80+
also you need to create the ```controlmasters``` directory:
81+
```sh
82+
mkdir ~/.ssh/controlmasters
83+
chmod go-xr ~/.ssh/controlmasters
84+
```
85+
86+
further information can be found on [wikibooks](http://en.wikibooks.org/wiki/OpenSSH/Cookbook/Multiplexing)
87+
7188
## Usage
7289

7390
See below for a [generic instruction on how to install composer](#installation-of-composer) if you aren't familiar with it.

0 commit comments

Comments
 (0)