File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
# clj-ssh
7
7
8
- SSH in clojure. Uses jsch.
8
+ SSH in clojure. Uses [ jsch] ( https://github.com/mwiede/jsch ) .
9
9
(See section RSA Private Key format if using openssl generated keys)
10
10
11
11
## Usage
@@ -205,7 +205,7 @@ Thanks to [Ryan Stradling](http://github.com/rstradling) for these.
205
205
Via [clojars](http://clojars.org ) and
206
206
[Leiningen](http://github.com/technomancy/leiningen ).
207
207
208
- :dependencies [clj-ssh " 0.5.14 " ]
208
+ :dependencies [org. clj-commons/clj- ssh " 0.6.2 " ]
209
209
210
210
or your favourite maven repository aware tool.
211
211
Original file line number Diff line number Diff line change
1
+ ## 0.6.3
2
+
3
+ - Moved jsch to version 0.2.11
4
+
5
+ ## 0.6.2
6
+
7
+ - Moved jsch to supported fork from com.github.mwiede/jsch version 0.2.9
8
+
1
9
## 0.5.16
2
10
3
11
- Moved jsch to version 0.1.55
Original file line number Diff line number Diff line change 11
11
12
12
:dependencies [[org.clojure/tools.logging " 1.2.4"
13
13
:exclusions [org.clojure/clojure]]
14
- [com.github.mwiede/jsch " 0.2.9 " ]
14
+ [com.github.mwiede/jsch " 0.2.11 " ]
15
15
[net.java.dev.jna/jna " 5.13.0" ]
16
16
[com.kohlschutter.junixsocket/junixsocket-core " 2.6.2" :extension " pom" ]]
17
17
:jvm-opts [" -Djava.awt.headless=true" ]
Original file line number Diff line number Diff line change 162
162
encrypted."
163
163
[^JSch agent ^String private-key-path ^String public-key-path]
164
164
(logging/tracef " Make identity %s %s" private-key-path public-key-path)
165
- (reflect/call-method
166
- com.jcraft.jsch.IdentityFile 'newInstance [String String JSch]
167
- nil private-key-path public-key-path agent))
165
+ (.addIdentity agent private-key-path public-key-path nil )
166
+ (.lastElement (.getIdentities (.getIdentityRepository agent))))
168
167
169
168
(defn ^KeyPair keypair
170
169
" Return a KeyPair object for the given options.
238
237
(^bytes getSignature [_ ^bytes data] (.. kpair (getSignature data)))
239
238
(^bytes getSignature [_ ^bytes data ^String alg] (.. kpair (getSignature data alg)))
240
239
(getAlgName [_]
241
- (String. ( reflect/call-method KeyPair 'getKeyTypeName [] kpair) ))
240
+ (.getKeyTypeString kpair))
242
241
(getName [_] identity)
243
242
(isEncrypted [_] (.. kpair isEncrypted))
244
243
(clear [_] (.. kpair dispose)))
You can’t perform that action at this time.
0 commit comments