Skip to content

Commit 0dfb705

Browse files
committed
Merge branch 'release/0.5.4'
2 parents c8a0a8e + 9e3f28d commit 0dfb705

File tree

5 files changed

+37
-12
lines changed

5 files changed

+37
-12
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ SSH tunneling is also supported:
117117

118118
## Documentation
119119

120-
[Annotated source](http:/hugoduncan.github.com/clj-ssh/api/0.4/uberdoc.html).
121-
[API](http:/hugoduncan.github.com/clj-ssh/api/0.4/index.html).
120+
[Annotated source](http:/hugoduncan.github.com/clj-ssh/0.5/annotated/uberdoc.html).
121+
[API](http:/hugoduncan.github.com/clj-ssh/0.5/api/index.html).
122122

123123
## FAQ
124124

@@ -128,12 +128,22 @@ during an sftp transfer signify?
128128

129129
A: Probably a disk full, or permission error.
130130

131+
### TTY's and background processes
132+
133+
Some useful links about ssh and background processes:
134+
135+
- [Snail book](http://www.snailbook.com/faq/background-jobs.auto.html)
136+
- [ssh -t question on stackoverflow](http://stackoverflow.com/questions/14679178/why-does-ssh-wait-for-my-subshells-without-t-and-kill-them-with-t)
137+
- [sudo and tty question on stackoverflow](http://stackoverflow.com/questions/8441637/to-run-sudo-commands-on-a-ec2-instance)
138+
139+
Thanks to [Ryan Stradling](http://github.com/rstradling) for these.
140+
131141
## Installation
132142

133143
Via [clojars](http://clojars.org) and
134144
[Leiningen](http://github.com/technomancy/leiningen).
135145

136-
:dependencies [clj-ssh "0.5.3"]
146+
:dependencies [clj-ssh "0.5.4"]
137147

138148
or your favourite maven repository aware tool.
139149

ReleaseNotes.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Release Notes
22

3-
Current release is 0.5.3
3+
Current release is 0.5.4
4+
5+
## 0.5.4
6+
7+
- Ensure literal keys get a non-blank comment
8+
When adding a literal key, use "Added by clj-ssh" as the comment.
9+
10+
- Ensure literal key strings are handled correctly
11+
412

513
## 0.5.3
614

profiles.clj

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
:clojure-1.3.0 {:dependencies [[org.clojure/clojure "1.3.0"]]}
44
:clojure-1.4.0 {:dependencies [[org.clojure/clojure "1.4.0"]]}
55
:clojure-1.5.0 {:dependencies [[org.clojure/clojure "1.5.0-RC4"]]}
6-
:codox {:codox {:writer codox-md.writer/write-docs
7-
:version "0.4"
8-
:output-dir "doc/api/0.4"
9-
:exclude [clj-ssh.agent clj-ssh.reflect clj-ssh.keychain]}
10-
:dependencies [[codox-md "0.1.0" :exclusions [org.clojure/clojure]]]}
11-
:marginalia {:marginalia {:dir "doc/api/0.4"}}
6+
:doc {:dependencies [[com.palletops/pallet-codox "0.1.0-SNAPSHOT"]
7+
[codox-md "0.2.0" :exclusions [org.clojure/clojure]]]
8+
:plugins [[codox/codox.leiningen "0.6.4"]
9+
[lein-marginalia "0.7.1"]]
10+
:codox {:writer codox-md.writer/write-docs
11+
:output-dir "doc/0.5/api"
12+
:src-dir-uri "https://github.com/hugoduncan/clj-ssh/blob/develop"
13+
:src-linenum-anchor-prefix "L"}
14+
:aliases {"marg" ["marg" "-d" "doc/0.5/annotated"]
15+
"codox" ["doc"]
16+
"doc" ["do" "codox," "marg"]}}
1217
:release
1318
{:plugins [[lein-set-version "0.2.1"]]
1419
:set-version

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
(defproject clj-ssh "0.5.3"
1+
(defproject clj-ssh "0.5.4"
22
:description "Library for using SSH from clojure."
33
:url "https://github.com/hugoduncan/clj-ssh"
44
:license {:name "Eclipse Public License"

src/clj_ssh/ssh.clj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,14 @@
162162
private-key
163163
(let [^com.jcraft.jsch.IdentityRepository id-repo (id-repository)]
164164
(if (local-repo? id-repo)
165-
(.addIdentity agent name private-key public-key passphrase)
165+
(.addIdentity
166+
agent name (as-bytes private-key) (as-bytes public-key) passphrase)
166167
(let [^KeyPair keypair
167168
(KeyPair/load
168169
agent (as-bytes private-key) (as-bytes public-key))]
169170
(when passphrase
170171
(.decrypt keypair passphrase))
172+
(.setPublicKeyComment keypair "Added by clj-ssh")
171173
(.add id-repo (.forSSHAgent keypair)))))
172174

173175
(and public-key-path private-key-path)

0 commit comments

Comments
 (0)