Skip to content

Commit 8c30b26

Browse files
committed
Merge release/0.5.8
2 parents 529a177 + cde4fb1 commit 8c30b26

File tree

10 files changed

+287
-106
lines changed

10 files changed

+287
-106
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ lib
55
classes
66
autodoc/**
77
doc/**
8-
.lein-deps-sum
9-
.lein-failures
8+
.lein-*
9+
.nrepl-*

.travis.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
language: clojure
22
lein: lein2
33
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
1514
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=

README.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,26 @@ SSH tunneling is also supported:
115115
(comment do something with port 8080 here)))))
116116
```
117117

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+
118138
## Documentation
119139

120140
[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.
143163
Via [clojars](http://clojars.org) and
144164
[Leiningen](http://github.com/technomancy/leiningen).
145165

146-
:dependencies [clj-ssh "0.5.7"]
166+
:dependencies [clj-ssh "0.5.8"]
147167

148168
or your favourite maven repository aware tool.
149169

ReleaseNotes.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
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
232

333
## 0.5.7
434

profiles.clj

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
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"]}}
210
:clojure-1.2.1 {:dependencies [[org.clojure/clojure "1.2.1"]]}
311
:clojure-1.3.0 {:dependencies [[org.clojure/clojure "1.3.0"]]}
412
: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"]]}
615
:doc {:dependencies [[com.palletops/pallet-codox "0.1.0-SNAPSHOT"]
716
[codox-md "0.2.0" :exclusions [org.clojure/clojure]]]
817
:plugins [[codox/codox.leiningen "0.6.4"]
@@ -13,10 +22,4 @@
1322
:src-linenum-anchor-prefix "L"}
1423
:aliases {"marg" ["marg" "-d" "doc/0.5/annotated"]
1524
"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"]}}}

project.clj

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
(defproject clj-ssh "0.5.7"
1+
(def agentproxy-version "0.0.7")
2+
3+
(defproject clj-ssh "0.5.8"
24
:description "Library for using SSH from clojure."
35
:url "https://github.com/hugoduncan/clj-ssh"
46
:license {:name "Eclipse Public License"
57
:url "http://www.eclipse.org/legal/epl-v10.html"}
68
:dependencies [[org.clojure/clojure "1.4.0"]
7-
[org.clojure/tools.logging "0.1.2"
9+
[org.clojure/tools.logging "0.2.6"
810
: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"]])

release.sh

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)