Skip to content

Commit d417152

Browse files
committed
Allow specification of session options as strings
This should allow options like: (default-session-options {GSSAPIAuthentication no}) Fixes pallet issue 120.
1 parent 648a5bb commit d417152

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/clj_ssh/ssh.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,13 @@ be added. An existing agent instance can alternatively be passed."
237237
(or port 22))]
238238
(when password
239239
(.setPassword session password))
240-
(doseq [option options]
240+
(doseq [[k v :as option] options]
241241
(.setConfig
242242
session
243-
(camelize (as-string (first option)))
244-
(as-string (second option))))
243+
(if (string? k)
244+
k
245+
(camelize (as-string k)))
246+
(as-string v)))
245247
session))
246248

247249
(defn session

0 commit comments

Comments
 (0)