Skip to content

Commit 11f3fdc

Browse files
committed
Add instructions for running tests
1 parent cfe517c commit 11f3fdc

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,30 @@ Via [clojars](http://clojars.org) and
147147

148148
or your favourite maven repository aware tool.
149149

150+
## Tests
151+
152+
The test rely on several keys being authorized on localhost:
153+
154+
```shell
155+
ssh-keygen -f ~/.ssh/clj_ssh -t rsa -C "key for test clj-ssh" -N ""
156+
ssh-keygen -f ~/.ssh/clj_ssh_pp -t rsa -C "key for test clj-ssh" -N "clj-ssh"
157+
cp ~/.ssh/authorized_keys ~/.ssh/authorized_keys.bak
158+
echo "from=\"localhost\" $(cat ~/.ssh/clj_ssh.pub)" >> ~/.ssh/authorized_keys
159+
echo "from=\"localhost\" $(cat ~/.ssh/clj_ssh_pp.pub)" >> ~/.ssh/authorized_keys
160+
```
161+
162+
The `clj_ssh_pp` key should have a passphrase, and should be registered with your `ssh-agent`.
163+
164+
```shell
165+
ssh-add ~/.ssh/clj_ssh_pp
166+
```
167+
168+
On OS X, use:
169+
170+
```shell
171+
ssh-add -K ~/.ssh/clj_ssh_pp
172+
```
173+
150174
## License
151175

152176
Copyright © 2012 Hugo Duncan

0 commit comments

Comments
 (0)