Commit Graph

104 Commits

Author SHA1 Message Date
Steven Murr
2d7ad48994 updated with riku's code 2017-09-01 09:07:24 -07:00
Steven Murr
6bdaa811d6 Updated function signature in ssh-docker example. Added Dockerfile for example. Added readme for ssh-docker example. 2017-08-26 14:28:21 -07:00
Anmol Sethi
c986e7ff5f fix timeout bug (#52)
Closes #51
2017-08-11 16:45:54 -05:00
Shuanglei Tao
9ccc7bbb64 Document session context canceling (#50) 2017-07-31 13:53:11 -05:00
Jeff Lindsay
cff9b0cc85 Update README.md 2017-07-26 14:15:23 -05:00
Jeff Lindsay
7d5e696692 bump quote 2017-07-26 14:14:12 -05:00
Jeff Lindsay
aa0cea23bb ci badge 2017-07-26 14:12:57 -05:00
Jeff Lindsay
de939e7327 email updates badge 2017-07-26 13:46:22 -05:00
Jeff Lindsay
48c9603bfc server: timeouts and context canceling on closed connections (#46)
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-07-24 16:25:45 -05:00
Mester
f892d8d851 Added LocalAddr() to session interface (#48) 2017-07-20 17:09:24 -05:00
Jeff Lindsay
33ad2fe318 [proposal] ConnCallback (#36)
ConnCallback lets you wrap connection objects for timeouts and limiting
2017-07-12 12:27:56 -05:00
Jeff Lindsay
bf3073636e server: fixing change in test helper api (#42)
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-05-23 17:42:30 -05:00
aerth
74da58b7bb check for nil interface before returning public key (#37) 2017-05-22 16:12:18 -05:00
Matt Aitchison
b47c6daa4b server: first pass at Shutdown and Close (#34)
* server: first pass at Shutdown and Close
* server: remove unused struct field
* server: replace http reference in error

closes: #22
2017-05-22 16:11:06 -05:00
Mahmood Ali
bbb28830b0 update config for CircleCI 2.0 (#39) 2017-04-29 00:11:02 -05:00
Mahmood Ali
20a454724d Support for local port forwarding (#38)
* Support local port forwarding
* refactor testSession to return ssh client as well
* Tests for local port forwarding
2017-04-28 17:54:12 -05:00
Jeff Lindsay
1051a0d154 agent forwarding support (#31)
* agent: added agent forwarding support with an example
* context: encode session id to hex string
* agent: ensure conn doesn't change in closure as loop iterates
* tests: use HostKeyCallback in ClientConfig
* README: noting examples in _example
* agent: documented exported names, added constants for temp file creation

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-04-14 14:47:40 -05:00
Jeff Lindsay
9b56478e13 contexts (#29)
* context: working mostly tested context implementation and refactoring to go with it
* _example/ssh-publickey: updating new context based callbacks
* godocs related to public api changes for contexts
* context: converting []bytes to strings before putting into context

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-03-14 14:13:03 -05:00
Pia Mancini
791cd4b75f Add backers and sponsors from Open Collective (#30)
Now your open collective backers and sponsors can to appear directly on your README. 
see how it'll look [here](https://github.com/apex/apex#backers)
[More info](https://github.com/opencollective/opencollective/wiki/Github-banner)
Also add badges on top.
2017-03-06 14:25:59 -06:00
Jeff Lindsay
6f812536df Update README.md 2017-03-03 16:14:44 -06:00
Jeff Lindsay
edf30fc0aa Fix short write (#28)
* session: pty normalization hack needs to return expected bytes written or chaos ensues, such as short write errors
* _example: renaming to avoid editors that auto-install from making docker binaries in your path that aren't docker
* session: keep extra calculations limited to pty case

Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-02-16 15:59:07 -06:00
Jeff Lindsay
a2a474964c fixed/finished basic pty support, added an example, and included tests (#25)
* fixed/finished basic pty support, added an example, and included tests
* session: make the window channel have buffer of 1 and send initial window size on it
* _example/docker: added an ssh to docker-run example
* changes from review: let Reply handle WantReply, only allow setting sess.pty once
* circle: hopefully a working circleci config
2017-02-15 18:08:25 -06:00
Jeff Lindsay
a307f226ad Merge pull request #24 from gliderlabs/misc-progrium
fixing a type led to general example cleanup. also added a helpful comment.
2017-02-15 09:19:46 -06:00
Jeff Lindsay
0922cadde6 fixing a type led to general cleanup. also added a comment.
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2017-02-14 18:30:43 -06:00
Jeff Lindsay
f3131153bc Merge pull request #21 from hloeffler/master
output port
2017-02-04 16:51:04 -06:00
hloeffler
398834c640 output port 2017-02-04 22:45:40 +01:00
Jeff Lindsay
39bc88bc6d Merge pull request #15 from atlassian/belak/always-send-pty-response
Always respond to PTY requests
2017-02-03 18:42:23 -06:00
Jeff Lindsay
3c20372393 Merge pull request #19 from atlassian/belak/add-server-version
Add ServerVersion as an option in the config
2017-02-03 18:25:05 -06:00
Kaleb Elwert
80be538d5c Add ServerVersion as an option in the config 2017-02-03 16:22:13 -08:00
Jeff Lindsay
d6ddd5d5dc Merge pull request #18 from atlassian/belak/ensure-exit-only-called-once
Ensure Session.Exit can only be called once
2017-02-03 18:19:25 -06:00
Kaleb Elwert
71d4b985d1 Ensure Session.Exit can only be called once 2017-02-03 16:00:28 -08:00
Jeff Lindsay
7b69159c43 Merge pull request #16 from atlassian/belak/exec-reply-reordering
Send the exec/shell reply before starting the session
2017-02-03 17:28:36 -06:00
Kaleb Elwert
b9687a28f0 Always respond to PTY requests
Fixes #13
2017-02-03 15:26:58 -08:00
Kaleb Elwert
8fb939fd33 Send the exec/shell reply before starting the session
Fixes #8
2017-02-03 15:25:07 -08:00
Jeff Lindsay
7bc24bc5e0 Merge pull request #6 from hloeffler/master
make GoLint happy
2016-12-20 15:18:13 -06:00
hloeffler
7659e45133 make GoLint happy... 2016-12-20 22:16:16 +01:00
hloeffler
78c9487526 "Typo" to make GoLint happy 2016-12-20 22:15:39 +01:00
Jeff Lindsay
a57b3d9382 Update README.md 2016-12-20 12:06:43 -06:00
Jeff Lindsay
d50a1bf50f Merge pull request #5 from hloeffler/examples
Add Examples
2016-12-19 13:47:15 -06:00
hloeffler
4f9bbdca20 change import 2016-12-19 20:37:23 +01:00
hloeffler
1a9e87f4d3 add public_key example 2016-12-19 20:34:40 +01:00
hloeffler
1f17e45e60 add simple Hello "world" 2016-12-19 20:27:36 +01:00
Jeff Lindsay
06c08068be Merge pull request #4 from hloeffler/master
avoid panic at KeysEqual() if one of the keys is nil
2016-12-18 17:41:10 -06:00
hloeffler
8fc7fced07 fix test 2016-12-18 18:47:50 +01:00
hloeffler
2a34fe962c add a test 2016-12-18 09:50:44 +01:00
hloeffler
794990a406 avoid panic at KeysEqual() if one of the keys is nil 2016-12-17 22:36:48 +01:00
Jeff Lindsay
cea7cfb974 Merge pull request #2 from yanc0/patch-1
import log package and go fmt README example
2016-12-03 13:05:51 -06:00
Yann Coleu
9026f3d54a import log package and go fmt README example 2016-12-03 16:08:19 +01:00
Jeff Lindsay
1681333ee9 Merge pull request #1 from mvrilo/master
Fix argument name
2016-11-30 20:13:37 -06:00
Murilo Santana
42d6dfc2a9 fix argument name 2016-11-30 23:56:46 -02:00