File tree Expand file tree Collapse file tree 5 files changed +37
-12
lines changed Expand file tree Collapse file tree 5 files changed +37
-12
lines changed Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ SSH tunneling is also supported:
117
117
118
118
## Documentation
119
119
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 ).
122
122
123
123
## FAQ
124
124
@@ -128,12 +128,22 @@ during an sftp transfer signify?
128
128
129
129
A: Probably a disk full, or permission error.
130
130
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
+
131
141
## Installation
132
142
133
143
Via [clojars](http://clojars.org ) and
134
144
[Leiningen](http://github.com/technomancy/leiningen ).
135
145
136
- :dependencies [clj-ssh " 0.5.3 " ]
146
+ :dependencies [clj-ssh " 0.5.4 " ]
137
147
138
148
or your favourite maven repository aware tool.
139
149
Original file line number Diff line number Diff line change 1
1
# Release Notes
2
2
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
+
4
12
5
13
## 0.5.3
6
14
Original file line number Diff line number Diff line change 3
3
:clojure-1.3.0 {:dependencies [[org.clojure/clojure " 1.3.0" ]]}
4
4
:clojure-1.4.0 {:dependencies [[org.clojure/clojure " 1.4.0" ]]}
5
5
: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" ]}}
12
17
:release
13
18
{:plugins [[lein-set-version " 0.2.1" ]]
14
19
:set-version
Original file line number Diff line number Diff line change 1
- (defproject clj-ssh " 0.5.3 "
1
+ (defproject clj-ssh " 0.5.4 "
2
2
:description " Library for using SSH from clojure."
3
3
:url " https://github.com/hugoduncan/clj-ssh"
4
4
:license {:name " Eclipse Public License"
Original file line number Diff line number Diff line change 162
162
private-key
163
163
(let [^com.jcraft.jsch.IdentityRepository id-repo (id-repository )]
164
164
(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)
166
167
(let [^KeyPair keypair
167
168
(KeyPair/load
168
169
agent (as-bytes private-key) (as-bytes public-key))]
169
170
(when passphrase
170
171
(.decrypt keypair passphrase))
172
+ (.setPublicKeyComment keypair " Added by clj-ssh" )
171
173
(.add id-repo (.forSSHAgent keypair)))))
172
174
173
175
(and public-key-path private-key-path)
You can’t perform that action at this time.
0 commit comments