File tree Expand file tree Collapse file tree 10 files changed +287
-106
lines changed Expand file tree Collapse file tree 10 files changed +287
-106
lines changed Original file line number Diff line number Diff line change 5
5
classes
6
6
autodoc /**
7
7
doc /**
8
- .lein-deps-sum
9
- .lein-failures
8
+ .lein- *
9
+ .nrepl- *
Original file line number Diff line number Diff line change 1
1
language : clojure
2
2
lein : lein2
3
3
before_script :
4
- - ssh-keygen -N "" -f ~/.ssh/id_rsa
5
- - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
6
- - ssh-keygen -f ~/.ssh/clj_ssh -t rsa -C "key for test clj-ssh" -N ""
7
- - ssh-keygen -f ~/.ssh/clj_ssh_pp -t rsa -C "key for test clj-ssh" -N "clj-ssh"
8
- - echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh.pub)" >> ~/.ssh/authorized_keys
9
- - echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh_pp.pub)" >> ~/.ssh/authorized_keys
10
- - eval $(ssh-agent)
11
- - echo "clj-ssh" > pp
12
- - chmod +x pp
13
- - setsid ssh-add ~/.ssh/clj_ssh_pp < pp # add the key to the keychain
14
-
4
+ - ssh-keygen -N "" -f ~/.ssh/id_rsa
5
+ - cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
6
+ - ssh-keygen -f ~/.ssh/clj_ssh -t rsa -C "key for test clj-ssh" -N ""
7
+ - ssh-keygen -f ~/.ssh/clj_ssh_pp -t rsa -C "key for test clj-ssh" -N "clj-ssh"
8
+ - echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh.pub)" >> ~/.ssh/authorized_keys
9
+ - echo "from=\"127.0.0.1,localhost,0.0.0.0\" $(cat ~/.ssh/clj_ssh_pp.pub)" >> ~/.ssh/authorized_keys
10
+ - eval $(ssh-agent)
11
+ - echo "clj-ssh" > pp
12
+ - chmod +x pp
13
+ - setsid ssh-add ~/.ssh/clj_ssh_pp < pp
15
14
script : lein2 test
16
- # notifications:
17
- # irc: "irc.freenode.org#pallet"
15
+ after_success :
16
+ - lein2 pallet-release push
17
+ env :
18
+ global :
19
+ secure : eOBqYhJhOJMtRiMKs9ZgG4pEHFy7YqiBZ5NUEWUYD6qav6sMRHqqR5F04NRI37SmnIupzeTChqfRgX0DOwHeTl4u+QJnwRDH2z3avu75FbtZWgiGrxzE39SESpVj/zsyDrEUzT7ZiMayXKyNa3ObiJ8vBUFT7x/OZyRp/1rJxHU=
Original file line number Diff line number Diff line change @@ -115,6 +115,26 @@ SSH tunneling is also supported:
115
115
(comment do something with port 8080 here)))))
116
116
```
117
117
118
+ Jump hosts can be used with the `jump-session`. Once the session is
119
+ connected, the `the-session` function can be used to obtain a session
120
+ that can be used with `ssh-exec`, etc. The `the-session` function can
121
+ be used on a session returned by `session`, so you can write code that
122
+ works with both a `jump-session` session and a single host session.
123
+
124
+ ```clj
125
+ (let [s (jump-session
126
+ (ssh-agent {})
127
+ [{:hostname " host1" :username " user"
128
+ :strict-host-key-checking :no }
129
+ {:hostname " final-host" :username " user"
130
+ :strict-host-key-checking :no }]
131
+ {})]
132
+ (with-connection s
133
+ (ssh-exec (the-session s) " ls" " " " " {}))
134
+ ```
135
+
136
+
137
+
118
138
## Documentation
119
139
120
140
[Annotated source](http:/hugoduncan.github.com/clj-ssh/0.5/annotated/uberdoc.html ).
@@ -143,7 +163,7 @@ Thanks to [Ryan Stradling](http://github.com/rstradling) for these.
143
163
Via [clojars](http://clojars.org ) and
144
164
[Leiningen](http://github.com/technomancy/leiningen ).
145
165
146
- :dependencies [clj-ssh " 0.5.7 " ]
166
+ :dependencies [clj-ssh " 0.5.8 " ]
147
167
148
168
or your favourite maven repository aware tool.
149
169
Original file line number Diff line number Diff line change 1
- # Release Notes
1
+ ## 0.5.8
2
+
3
+ - Enable introspection of sessions
4
+ Adds the session? predicate for testing for a Session object, an the
5
+ session-hostname and session-port functions for querying a session.
6
+
7
+ - Enable copying identities between agents
8
+ The copy-identities can be used to copy identities from one agent to
9
+ another. This is useful to allow copying identities from a system agent
10
+ to a non system agent.
11
+
12
+ - Add support for jump hosts
13
+ The jump-session function is used to obtain a session that can be
14
+ connected across jump hosts.
15
+
16
+ The ` the-session ` function is added to obtain a jsch session from a
17
+ connected jump-session, or a connected jsch Session, and can be used in
18
+ code that wants to support jump sessions.
19
+
20
+ - Add fingerprint function on keypairs
21
+
22
+ - Allow keypair construction from just a public key
23
+
24
+ - Update tools.logging to 0.2.6
25
+
26
+ - Update to jsch 0.1.51
27
+ Adds support for private keys in PKCS #8 format.
28
+
29
+ Fixes several session crash issues.
30
+
31
+ - Update to jsch.agentproxy 0.0.7
2
32
3
33
## 0.5.7
4
34
Original file line number Diff line number Diff line change 1
- {:dev {:dependencies [[ch.qos.logback/logback-classic " 1.0.0" ]]}
1
+ {:dev
2
+ {:dependencies [[ch.qos.logback/logback-classic " 1.0.0" ]]
3
+ :plugins [[lein-pallet-release " RELEASE" ]]
4
+ :pallet-release
5
+ {:url " https://pbors:${GH_TOKEN}@github.com/hugoduncan/clj-ssh.git" ,
6
+ :branch " master" }
7
+ :aliases {" test" [" with-profile"
8
+ " clojure-1.4.0:clojure-1.5.1:clojure-1.6.0"
9
+ " test" ]}}
2
10
:clojure-1.2.1 {:dependencies [[org.clojure/clojure " 1.2.1" ]]}
3
11
:clojure-1.3.0 {:dependencies [[org.clojure/clojure " 1.3.0" ]]}
4
12
:clojure-1.4.0 {:dependencies [[org.clojure/clojure " 1.4.0" ]]}
5
- :clojure-1.5.0 {:dependencies [[org.clojure/clojure " 1.5.0-RC4" ]]}
13
+ :clojure-1.5.1 {:dependencies [[org.clojure/clojure " 1.5.1" ]]}
14
+ :clojure-1.6.0 {:dependencies [[org.clojure/clojure " 1.6.0" ]]}
6
15
:doc {:dependencies [[com.palletops/pallet-codox " 0.1.0-SNAPSHOT" ]
7
16
[codox-md " 0.2.0" :exclusions [org.clojure/clojure]]]
8
17
:plugins [[codox/codox.leiningen " 0.6.4" ]
13
22
:src-linenum-anchor-prefix " L" }
14
23
:aliases {" marg" [" marg" " -d" " doc/0.5/annotated" ]
15
24
" codox" [" doc" ]
16
- " doc" [" do" " codox," " marg" ]}}
17
- :release
18
- {:plugins [[lein-set-version " 0.2.1" ]]
19
- :set-version
20
- {:updates [{:path " README.md"
21
- :no-snapshot true
22
- :search-regex #"clj-ssh \"\d +\.\d +\.\d +\" " }]}}}
25
+ " doc" [" do" " codox," " marg" ]}}}
Original file line number Diff line number Diff line change 1
- (defproject clj-ssh " 0.5.7"
1
+ (def agentproxy-version " 0.0.7" )
2
+
3
+ (defproject clj-ssh " 0.5.8"
2
4
:description " Library for using SSH from clojure."
3
5
:url " https://github.com/hugoduncan/clj-ssh"
4
6
:license {:name " Eclipse Public License"
5
7
:url " http://www.eclipse.org/legal/epl-v10.html" }
6
8
:dependencies [[org.clojure/clojure " 1.4.0" ]
7
- [org.clojure/tools.logging " 0.1.2 "
9
+ [org.clojure/tools.logging " 0.2.6 "
8
10
:exclusions [org.clojure/clojure]]
9
- [com.jcraft/jsch.agentproxy.usocket-jna " 0.0.6 " ]
10
- [com.jcraft/jsch.agentproxy.usocket-nc " 0.0.6 " ]
11
- [com.jcraft/jsch.agentproxy.sshagent " 0.0.6 " ]
12
- [com.jcraft/jsch.agentproxy.pageant " 0.0.6 " ]
13
- [com.jcraft/jsch.agentproxy.core " 0.0.6 " ]
14
- [com.jcraft/jsch.agentproxy.jsch " 0.0.6 " ]
15
- [com.jcraft/jsch " 0.1.50 " ]])
11
+ [com.jcraft/jsch.agentproxy.usocket-jna ~agentproxy-version ]
12
+ [com.jcraft/jsch.agentproxy.usocket-nc ~agentproxy-version ]
13
+ [com.jcraft/jsch.agentproxy.sshagent ~agentproxy-version ]
14
+ [com.jcraft/jsch.agentproxy.pageant ~agentproxy-version ]
15
+ [com.jcraft/jsch.agentproxy.core ~agentproxy-version ]
16
+ [com.jcraft/jsch.agentproxy.jsch ~agentproxy-version ]
17
+ [com.jcraft/jsch " 0.1.51 " ]])
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments