File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,30 @@ Via [clojars](http://clojars.org) and
147
147
148
148
or your favourite maven repository aware tool.
149
149
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
+
150
174
## License
151
175
152
176
Copyright © 2012 Hugo Duncan
You can’t perform that action at this time.
0 commit comments