Andrey Petrov
61b525ae54
sshd: Apply read deadline to handler
2020-01-06 20:04:17 -05:00
Akshay Shekher
de89c87946
#315 : set a 10 sec deadline for clients to complete the handshake
2020-01-04 14:22:10 -08:00
Juan Pablo Ossa Zapata
0a122be81e
sshd/terminal: Fix import comment
2019-11-04 11:42:10 -05:00
Andrey Petrov
3e37ebf85a
sshd/terminal: Undo emoji offset bugfix
...
Introduced another bug: #316
2019-04-21 16:48:12 -04:00
Andrey Petrov
5949f9792f
sshd: Close connection on failed handshake
...
Hopefully fixed #315
2019-04-17 16:57:30 -04:00
Andrey Petrov
479a391d55
sshd/terminal: Use clearline and clearscreen codes for enterClear
...
Fixes emoji offset bug
2019-03-29 17:26:23 -04:00
Andrey Petrov
c9b58a80fa
sshd/terminal: Import test from upstream patch
2019-03-29 17:26:23 -04:00
Andrey Petrov
87024f3ded
sshd/terminal: Clear screen below on enterClear
2019-03-22 15:31:17 -04:00
Andrey Petrov
6acb0bf809
sshchat, host: Switch to new terminal clearline api
2019-03-21 15:33:18 -04:00
Andrey Petrov
b4ba8226c6
sshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)
2019-03-21 15:33:18 -04:00
Andrey Petrov
418c991677
sshd/terminal: Use N-moves in Terminal.move when possible
2019-03-21 15:33:18 -04:00
Andrey Petrov
8b710da728
sshd/terminal: Fix mid-line enter and reflow bugs
2019-03-19 12:09:54 -04:00
Andrey Petrov
4240130978
legal: Put sshd/terminal notice in root
2019-03-18 15:36:21 -04:00
Andrey Petrov
8653f0a730
sshchat: Replace terminal echo hack with our forked terminal
2019-03-18 10:08:39 -04:00
Andrey Petrov
1ba36b785c
sshd/terminal: Add Terminal.ClearLine option
2019-03-18 10:08:39 -04:00
Andrey Petrov
596d41ff29
sshd/terminal: Add original LICENSE
2019-03-18 10:08:39 -04:00
Andrey Petrov
aecd8c66c3
sshd/terminal: Import fork of x/crypto/ssh
2019-03-18 10:08:39 -04:00
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