38 Commits

Author SHA1 Message Date
UlisseMini
9c918676ed sshd: Better comments and changed += 1 to ++ 2019-02-24 09:40:47 -06:00
UlisseMini
e6233daefd sshd: Better comments 2019-02-24 09:40:47 -06:00
Andrey Petrov
903d6c9420
/ban query support (#286)
For #285 

Turns out there were some bugs in Set, and I was using it incorrectly too.

The query syntax is a little awkward but couldn't find a nicer easy to parse format that worked with quoted string values.
2018-12-25 14:29:19 -05:00
Oliver Graff
05597b3e6a Fix unit tests / Travis (#238)
* Fix net_test

* Update host test to add carriage return char

* Fix host_test so it will not hang if the SSH connection fails

Fixes #231, closes #235.
2017-06-14 09:07:24 -04:00
Jesse Shapiro
7781d5b135 sshd: Add SHA256 prefix to pubkey fingerprints (#220)
Fixes #214
2016-10-22 09:49:26 -04:00
Andrey Petrov
3535fb35bb tests: Fix ineffectual assigns 2016-09-01 17:01:47 -04:00
Andrey Petrov
398cd75c5e logging: Add [RemoteAddr] prefix to connection-related messages 2016-08-13 16:22:43 -04:00
Andrey Petrov
c69cefc873 logging: More information about why connections get dropped
Fixes #197 for now, maybe more later.
2016-08-12 16:46:08 -04:00
Dmitri Shuralyov
66adee6f9a /whois: Hide IP if user isn't admin; display client and time joined. (#192)
Resolves #170.
2016-08-06 18:20:34 -04:00
Andrey Petrov
f6de73d420 ratelimiter: Bump up to 16kb/min from 4kb/min 2016-08-06 16:41:19 -04:00
Andrey Petrov
15e14a0872 ratelimit: Increase ratelimit to avoid failing handshakes
Regarding #171
2016-08-03 20:01:07 -04:00
Andrey Petrov
1662ecd431 Fix travisci tests
Bind to localhost rather than all hosts.
2016-08-02 16:03:19 -04:00
Andrey Petrov
2abe368022 style: Fix gofmt and vet complaints 2016-07-31 12:18:06 -04:00
Andrey Petrov
f0db74c874 terminal: Disconnect sooner and more reliably 2016-07-24 22:56:38 -04:00
Andrey Petrov
50d2be3a88 Fixed message buffer timeout 2016-07-24 16:17:02 -04:00
Andrey Petrov
3ba0c59341 Unflake tests, remove lock from chat/message.User 2016-07-24 16:17:02 -04:00
Andrey Petrov
e6f7dba34e Progress: Unchan user 2016-07-24 16:17:02 -04:00
Andrey Petrov
8b9ebbdb6b sshd: Add keepalive every 30s
Based on work by @prologic in #147
Fixes #89
2016-07-17 20:13:48 -04:00
Andrey Petrov
ace2bc5124 sshd.SSHListener: Use HandlerFunc instead of terminal channel feed 2016-07-17 16:49:14 -04:00
Andrey Petrov
0fdeda8b75 Progress: Trying to fix more deadlocks, failing. 2016-07-12 18:24:02 -04:00
Andrey Petrov
3d307ac686 More forgiving connection limiter. 2015-01-28 23:12:58 -06:00
Andrey Petrov
0c21486992 History backfill, also tests pass. 2015-01-18 18:55:47 -08:00
Andrey Petrov
3c4e6994c2 chat.Channel->chat.Room, /ban, /whois, chat.User.Identifier
- Renamed chat.Channel -> chat.Room
- /ban works, supports IP also
- /whois works
- chat.User now accepts an Identifier interface rather than name
- Tweaked rate limiting
2015-01-16 21:53:22 -08:00
Andrey Petrov
cc25d17bdc Configurable rate limiting for sshd 2015-01-16 12:36:34 -08:00
Andrey Petrov
b99083ee6e Connection-level rate limiting. 2015-01-16 12:30:18 -08:00
Andrey Petrov
50540d26e9 Passing /kick test. 2015-01-11 14:12:51 -08:00
Andrey Petrov
e626eab624 /kick and /msg 2015-01-10 18:05:31 -08:00
Andrey Petrov
11e92b5718 Fixed key storage. 2015-01-10 17:27:55 -08:00
Andrey Petrov
d5626b7514 Abstracted sshd.Connection; Op works now. 2015-01-10 13:46:36 -08:00
Andrey Petrov
d8d5deac1c Use authorized_keys-style public keys rather than fingerprints.
Tests for whitelisting.
2015-01-10 12:44:06 -08:00
Andrey Petrov
7a39898b36 Merge branch 'refactor' of github.com:shazow/ssh-chat into refactor 2015-01-06 21:43:08 -08:00
Andrey Petrov
0c5c7b50b6 Resolve name collision to GuestX, with test. 2015-01-06 21:42:57 -08:00
Matt Croydon
492d50d521 Default port to 2022, updating documentation to match new default. Addresses nice to have in #76.
Also print bind information on startup. An alternative to this approach would be to use info level logging, but the issue makes me think we want it all the time. I altered the README to show use of non-default port 22 which makes the note about root/sudo below still make sense.
2015-01-04 22:00:09 -06:00
Andrey Petrov
6a662bf358 Channel Member now wrapping User with metadata, new Auth struct. 2015-01-01 18:40:10 -08:00
Andrey Petrov
c1406dda55 Remove all old code; fixed Set remove; fixed disconnect bug; fixed term reference. 2014-12-24 20:31:54 -08:00
Andrey Petrov
eda2b7c0d9 Super broken but kinda working. 2014-12-22 22:21:07 -08:00
Andrey Petrov
7beb7f99bb Testing for net. 2014-12-22 15:53:30 -08:00
Andrey Petrov
59ac8bb037 sshd abstraction might be done, untested. 2014-12-22 14:26:26 -08:00