Commit Graph

123 Commits

Author SHA1 Message Date
bfu4 df2ea7d310
give access to server 2021-11-18 21:07:07 -05:00
bfu4 4f30e9f812
HMMM 2021-11-18 20:43:19 -05:00
bfu4 23b99eba9c
man 2021-11-18 20:07:30 -05:00
bfu4 db73e3ba2b
omg 2021-11-18 19:19:16 -05:00
bfu4 ada710819c
hows this? 2021-11-18 19:11:16 -05:00
bfu4 081f247dd2
updates again 2021-11-18 19:07:21 -05:00
bfu4 c00a9a3e8c
that should fix it 2021-11-18 19:05:48 -05:00
Kaleb Elwert c9fc4412c4
Merge pull request #134 from vladimir-ch/session-docs-typo
Fix typo in Session docs
2021-06-28 00:39:05 -07:00
Alejandro Mery c7b4a1b92e Prevent Context.RemoteAddr() from exploding when called from ConnCallback
When calling ctx.RemoteAddr() within ConnCallback one gets a panic due to
unsafe casting within the accessor. I understand it's not a valid scenario
as such, but I accidentally called a logger that expected that checked
for RemoteAddr() in ssh.Context

panic: interface conversion: interface is nil, not net.Addr

Signed-off-by: Alejandro Mery <amery@geeks.cl>
2021-06-28 00:37:57 -07:00
Kaleb Elwert 3427354935 Update go.mod 2021-06-28 00:36:26 -07:00
Stefan Tatschner bf02c4155d
Add go mod files (#153)
* Add go mod files
* Fix circle ci
* Update minimum supported version to 1.12

Co-authored-by: Kaleb Elwert <kaleb@coded.io>
2021-06-28 00:33:12 -07:00
Kaleb Elwert 4204f8c42d
Merge pull request #143 from zeripath/connection-failed-callback
Add ConnectionFailedCallback to enable reporting of failed connection
2021-06-28 00:23:12 -07:00
muryliang 30ec06db4e
change pty repo into github.com/creack/pty as the origin one is archievd (#139) 2021-02-16 08:17:51 -08:00
Philipp Lehmann 1593226ea9 Fix: KeyboardInteractive Login
+ Include KeyboardInteractive in decision if NoClientAuth should be performed
+ Add option for KeyboardInteractive
2021-02-01 11:58:44 -08:00
Andrew Thornton 98ce6bfebb
Add ConnectionFailedCallback to enable reporting of failed connection
Signed-off-by: Andrew Thornton <art27@cantab.net>
2020-12-12 13:16:31 +00:00
meislerj fb34512070
Register chan to Session to listen for break requests (#141)
Co-authored-by: Jacob Meisler <meislerj@amazon.com>
2020-10-07 09:30:10 -07:00
Kaleb Elwert 76cadaa318
Merge pull request #111 from gliderlabs/subsystem-support
Add subsystem support
2020-07-17 15:22:14 -07:00
Kaleb Elwert a462277fdd Add subsystem support 2020-07-17 15:08:56 -07:00
Alan Yee f5cb472d2a
Update README.md (#135) 2020-02-13 21:01:06 -06:00
Vladimír Chalupecký a7de8ac255 Fix typo in Session docs 2020-02-13 11:51:32 +01:00
Kaleb Elwert 59d6e4540d
Merge pull request #123 from gliderlabs/optimize-add-host-key
Update AddHostKey to avoid always appending
2019-10-23 09:01:01 -07:00
Kaleb Elwert 1db07d8a37 Make TestSignals a bit more bulletproof 2019-10-16 11:22:57 -07:00
Kaleb Elwert be3a169b0c Fix TestSignals to remove a possible race 2019-10-16 10:42:43 -07:00
Kaleb Elwert 38820366bb Start cleaning up config to fix race conditions 2019-10-16 10:27:39 -07:00
Kaleb Elwert f79e692124 Update AddHostKey to avoid always appending 2019-10-16 10:07:55 -07:00
Kaleb Elwert 63518b5243
Merge pull request #122 from Michael9127/pass-ConnCallback-context
Passes Context into ConnCallback
2019-10-09 09:06:44 -07:00
Michael Borkenstein e9ac9d7af2 Passes Context into ConnCallback 2019-10-09 09:17:49 -05:00
Hiram Chirino f6d256ee25 feat: Make the HandleConn method public. (#120) 2019-09-27 13:30:27 -07:00
xf0rk 866d0ddf79 Ensure user information is available in KeyboardInteractive callback
Fixes #116
2019-07-11 11:02:43 -07:00
Kaleb Elwert 5b6cc7030f
Merge pull request #110 from gliderlabs/belak/raw-cmd
Add Session.RawCommand()
2019-06-19 20:22:20 -07:00
Luis Gustavo S. Barreto ac34fea39f Update remoteforward example to follow configurable handlers feature 2019-06-19 10:59:27 -07:00
Kaleb Elwert 93eb073412
Merge pull request #112 from gustavosbarreto/fix_build_error
Fix build error
2019-06-19 10:48:18 -07:00
Luis Gustavo S. Barreto 31eb4b717f Fix build error 2019-06-19 13:53:26 -03:00
Kaleb Elwert 0f1eb383c3 Rename DefaultServerConfigCallback to ServerConfigCallback 2019-06-19 02:06:29 -07:00
kuehnelth 446473b0d4 examples/ssh-pty: wait for child process after client disconnect (#104) 2019-06-19 02:03:30 -07:00
Luis Gustavo S. Barreto 86efb70628 Fix ForwardedTCPHandler by switching to a pointer receiver
Closes #109
2019-06-19 01:45:13 -07:00
Kaleb Elwert bb0e5c0692 Simplify handlers to remove additional types 2019-06-19 01:24:53 -07:00
Kaleb Elwert f199e8cd1e
Merge pull request #108 from gliderlabs/configurable-handlers
Configurable channel handlers

Closes #89, #71
2019-06-19 00:26:59 -07:00
Andrew Chambers 44274595c2 Add Session.RawCommand() 2019-06-19 00:20:00 -07:00
Kaleb Elwert dd61f8b0d5 Disable port forwarding by default
Fixes #68
2019-06-12 10:52:26 -07:00
Kaleb Elwert 465d1bd2c7 Clean up Request replies 2019-06-12 10:42:05 -07:00
Kaleb Elwert c9e327ebeb Remove Handler getters and setters 2019-06-12 10:41:07 -07:00
Kaleb Elwert 77856273e0 Clean up Channel and Request Handler interfaces 2019-06-12 10:29:36 -07:00
Kaleb Elwert 75b695471d Merge remote-tracking branch 'moul/dev/moul/configurable-handlers' into configurable-handlers 2019-06-12 10:14:10 -07:00
Kaleb Elwert a9daacccc9 Fix panic with missing request handler
Fixes #102
2019-04-24 23:59:04 -07:00
czoczo 9253a53eda Fix connection kill, when IdleTimeout given without setting MaxTimeout. 2019-03-31 09:59:03 -07:00
Kaleb Elwert ef6d89046b Remove Pty minimum size requirement 2019-03-08 11:26:50 -08:00
Kaleb Elwert e5ece1489c Add SessionPolicyCallback (#80)
* Add SessionPolicyCallback

Closes #7

* Update docs related to the embedded sync.Locker in the Context

* Fix mutex in context
2019-02-22 20:11:43 -06:00
Philipp C. Heckel 4b72c663cf Add DefaultServerConfigCallback option for create custom default (#95)
ServerConfigs
2019-02-21 13:57:56 -06:00
Kaleb Elwert bed87f398c
Merge pull request #92 from glassechidna/master
Added Server.KeyboardInteractiveHandler
2019-01-07 11:22:28 -08:00