Commit Graph

16 Commits

Author SHA1 Message Date
Jeff Lindsay
3eeacb7850
session: adding signal handling support (#44) 2017-11-01 18:03:54 -05:00
Shuanglei Tao
9ccc7bbb64 Document session context canceling (#50) 2017-07-31 13:53:11 -05:00
Mester
f892d8d851 Added LocalAddr() to session interface (#48) 2017-07-20 17:09:24 -05:00
aerth
74da58b7bb check for nil interface before returning public key (#37) 2017-05-22 16:12:18 -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
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
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
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
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
c3f37d4334 more docs, license, readme.
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2016-11-30 16:06:57 -06:00
Jeff Lindsay
7f8cc2a19a docs and examples
Signed-off-by: Jeff Lindsay <progrium@gmail.com>
2016-11-29 17:23:42 -06:00
Jeff Lindsay
adbd4da93a initial commit 2016-10-03 16:54:17 -05:00