ssh-chat
5 years agomain: Use x/crypto/ssh helpers for parsing passworded keys origin/fix-key-parse
Andrey Petrov [Mon, 20 Apr 2020 19:34:42 +0000 (15:34 -0400)]
main: Use x/crypto/ssh helpers for parsing passworded keys

5 years agogo mod: Update, mostly for x/crypto
Andrey Petrov [Mon, 20 Apr 2020 19:34:28 +0000 (15:34 -0400)]
go mod: Update, mostly for x/crypto

5 years agoMerge pull request #343 from shazow/term-bot-nopty v1.9
Andrey Petrov [Fri, 17 Apr 2020 16:28:27 +0000 (12:28 -0400)]
Merge pull request #343 from shazow/term-bot-nopty

sshd: Terminal.Term() fallback to Env TERM

5 years agosshd: Terminal.Term() fallback to Env TERM origin/term-bot-nopty
Andrey Petrov [Fri, 17 Apr 2020 16:22:31 +0000 (12:22 -0400)]
sshd: Terminal.Term() fallback to Env TERM

5 years agomain: Sort flags, unhide --unsafe-passphrase for now
Andrey Petrov [Thu, 16 Apr 2020 16:56:15 +0000 (12:56 -0400)]
main: Sort flags, unhide --unsafe-passphrase for now

5 years agoMerge pull request #342 from shazow/unsafe-password
Andrey Petrov [Thu, 16 Apr 2020 16:46:32 +0000 (12:46 -0400)]
Merge pull request #342 from shazow/unsafe-password

main: Add --unsafe-passphrase

5 years agomain: Add extraHelp
Andrey Petrov [Thu, 16 Apr 2020 16:44:20 +0000 (12:44 -0400)]
main: Add extraHelp

5 years agomain: Clarify passphrase shenanigans
Andrey Petrov [Thu, 16 Apr 2020 16:32:12 +0000 (12:32 -0400)]
main: Clarify passphrase shenanigans

5 years agomain: Force passphrase auth even with pubkey auth
Andrey Petrov [Thu, 16 Apr 2020 15:30:13 +0000 (11:30 -0400)]
main: Force passphrase auth even with pubkey auth

5 years agoMerge pull request #341 from shazow/term-bot
Andrey Petrov [Thu, 16 Apr 2020 15:07:06 +0000 (11:07 -0400)]
Merge pull request #341 from shazow/term-bot

TERM=bot mode

5 years agomain: Add --unsafe-passphrase
Andrey Petrov [Wed, 15 Apr 2020 18:19:28 +0000 (14:19 -0400)]
main: Add --unsafe-passphrase

5 years agoCreate FUNDING.yml
Andrey Petrov [Tue, 14 Apr 2020 15:13:33 +0000 (11:13 -0400)]
Create FUNDING.yml

5 years agomain: Skip prompt, highlight, autocomplete in bot mode
Andrey Petrov [Mon, 13 Apr 2020 15:33:12 +0000 (11:33 -0400)]
main: Skip prompt, highlight, autocomplete in bot mode

5 years agosshd: Remove temporary "Connecting..." prompt
Andrey Petrov [Mon, 13 Apr 2020 15:32:38 +0000 (11:32 -0400)]
sshd: Remove temporary "Connecting..." prompt

5 years agomain: Add TERM=bot handling for Host
Andrey Petrov [Mon, 13 Apr 2020 15:23:11 +0000 (11:23 -0400)]
main: Add TERM=bot handling for Host

5 years agochat/message: Add UserConfig.Echo
Andrey Petrov [Mon, 13 Apr 2020 15:22:53 +0000 (11:22 -0400)]
chat/message: Add UserConfig.Echo

5 years agochat: Disable broken TestIgnore test
Andrey Petrov [Mon, 13 Apr 2020 14:55:41 +0000 (10:55 -0400)]
chat: Disable broken TestIgnore test

5 years agomain, sshd: Add comments and TODOs
Andrey Petrov [Sun, 12 Apr 2020 17:04:53 +0000 (13:04 -0400)]
main, sshd: Add comments and TODOs

5 years agoGet the term value
Chris Miller [Fri, 10 Jan 2020 01:18:32 +0000 (01:18 +0000)]
Get the term value

5 years agoApply env vars SSHCHAT_TIMESTAMP and SSHCHAT_THEME
Chris Miller [Fri, 10 Jan 2020 00:52:12 +0000 (00:52 +0000)]
Apply env vars SSHCHAT_TIMESTAMP and SSHCHAT_THEME

5 years agoWait for shell
Chris Miller [Fri, 10 Jan 2020 00:37:51 +0000 (00:37 +0000)]
Wait for shell

5 years agoMerge pull request #309 from shazow/req-env
Andrey Petrov [Sun, 12 Apr 2020 16:36:07 +0000 (12:36 -0400)]
Merge pull request #309 from shazow/req-env

sshd: Add Terminal.Env()

5 years agosshd/terminal: gofmt
Andrey Petrov [Thu, 2 Apr 2020 00:40:56 +0000 (20:40 -0400)]
sshd/terminal: gofmt

5 years agoMerge pull request #339 from yumaokao/cjk-fullwidth
Andrey Petrov [Thu, 2 Apr 2020 00:37:43 +0000 (20:37 -0400)]
Merge pull request #339 from yumaokao/cjk-fullwidth

sshd/terminal: Add fullwidth check for CJK in visualLength

5 years agosshd/terminal: Add fullwidth check for CJK in visualLength
yumaokao [Sat, 21 Mar 2020 11:57:39 +0000 (19:57 +0800)]
sshd/terminal: Add fullwidth check for CJK in visualLength

5 years agoMerge pull request #338 from 42wim/f-imports
Andrey Petrov [Sun, 8 Mar 2020 22:46:26 +0000 (18:46 -0400)]
Merge pull request #338 from 42wim/f-imports

Remove import comment. Fixes #337

5 years agoRemove import comment. Fixes #337
Wim [Sun, 8 Mar 2020 22:32:02 +0000 (23:32 +0100)]
Remove import comment. Fixes #337

Fix issue with go1.13+
See https://github.com/golang/go/issues/37747

5 years agosshd: Fix env error check origin/req-env
Andrey Petrov [Fri, 10 Jan 2020 14:25:59 +0000 (09:25 -0500)]
sshd: Fix env error check

Co-Authored-By: Chris Miller <millerlogic@users.noreply.github.com>
5 years agoMakefile: Fix binary ldflags missing
Andrey Petrov [Tue, 7 Jan 2020 01:14:32 +0000 (20:14 -0500)]
Makefile: Fix binary ldflags missing

5 years agosshd: Apply read deadline to connection handler (#331)
Andrey Petrov [Tue, 7 Jan 2020 01:09:34 +0000 (20:09 -0500)]
sshd: Apply read deadline to connection handler (#331)

This should prevent connections from stalling out and eating up file descriptors without ever joining the chat.

5 years agosshd/terminal: Add more readline-compatible navigation
Akshay Shekher [Sun, 5 Jan 2020 15:51:10 +0000 (07:51 -0800)]
sshd/terminal: Add more readline-compatible navigation

- Alt-F: jump forward by a word
- Alt-B: jump backword by a word
- Ctrl-F: jump forward by a character
- Ctrl-B: jump backword by a character

5 years agosshd/terminal: Fix import comment
Juan Pablo Ossa Zapata [Mon, 4 Nov 2019 16:42:10 +0000 (11:42 -0500)]
sshd/terminal: Fix import comment

5 years agoMerge pull request #317 from tyrelsouza/master
Andrey Petrov [Thu, 11 Jul 2019 19:16:24 +0000 (15:16 -0400)]
Merge pull request #317 from tyrelsouza/master

Best domain Ever.

5 years agobetter domain
Tyrel Souza [Thu, 11 Jul 2019 18:44:21 +0000 (14:44 -0400)]
better domain

6 years agosshd/terminal: Undo emoji offset bugfix v1.8.2
Andrey Petrov [Sun, 21 Apr 2019 20:48:12 +0000 (16:48 -0400)]
sshd/terminal: Undo emoji offset bugfix

Introduced another bug: #316

6 years agosshd: Close connection on failed handshake
Andrey Petrov [Wed, 17 Apr 2019 20:57:30 +0000 (16:57 -0400)]
sshd: Close connection on failed handshake

Hopefully fixed #315

6 years agosshchat: term.Write on empty lines to fix prompt reset bug
Andrey Petrov [Fri, 29 Mar 2019 21:26:18 +0000 (17:26 -0400)]
sshchat: term.Write on empty lines to fix prompt reset bug

6 years agosshd/terminal: Use clearline and clearscreen codes for enterClear
Andrey Petrov [Fri, 29 Mar 2019 21:25:51 +0000 (17:25 -0400)]
sshd/terminal: Use clearline and clearscreen codes for enterClear

Fixes emoji offset bug

6 years agosshd/terminal: Import test from upstream patch
Andrey Petrov [Tue, 26 Mar 2019 20:02:45 +0000 (16:02 -0400)]
sshd/terminal: Import test from upstream patch

6 years agoMerge pull request #311 from tyrelsouza/patch-1
Andrey Petrov [Fri, 29 Mar 2019 18:15:39 +0000 (14:15 -0400)]
Merge pull request #311 from tyrelsouza/patch-1

Update README to match current --help

6 years agoUpdate README to match current --help
Tyrel Souza [Fri, 29 Mar 2019 18:14:57 +0000 (14:14 -0400)]
Update README to match current --help

6 years agoREADME: Are you sure you don't just want the binary release?
Andrey Petrov [Mon, 25 Mar 2019 14:18:27 +0000 (10:18 -0400)]
README: Are you sure you don't just want the binary release?

6 years agoREADME: Badge color
Andrey Petrov [Mon, 25 Mar 2019 14:16:12 +0000 (10:16 -0400)]
README: Badge color

6 years agoREADME: Badges
Andrey Petrov [Mon, 25 Mar 2019 14:13:54 +0000 (10:13 -0400)]
README: Badges

Add downloads badge

6 years agochat/message: Handle nil theme (mono) v1.8.1
Andrey Petrov [Sun, 24 Mar 2019 22:59:16 +0000 (18:59 -0400)]
chat/message: Handle nil theme (mono)

Fixes #310

6 years agosshd: Add Terminal.Env()
Andrey Petrov [Sun, 24 Mar 2019 17:41:33 +0000 (13:41 -0400)]
sshd: Add Terminal.Env()

6 years agochat/message: Fix tests v1.8
Andrey Petrov [Fri, 22 Mar 2019 20:04:59 +0000 (16:04 -0400)]
chat/message: Fix tests

6 years agosshd/terminal: Clear screen below on enterClear
Andrey Petrov [Fri, 22 Mar 2019 19:31:17 +0000 (15:31 -0400)]
sshd/terminal: Clear screen below on enterClear

6 years ago/timestamp, /theme: Fix rendering, add tests
Andrey Petrov [Fri, 22 Mar 2019 19:27:00 +0000 (15:27 -0400)]
/timestamp, /theme: Fix rendering, add tests

6 years agoMerge pull request #308 from shazow/timestamp-both
Andrey Petrov [Thu, 21 Mar 2019 22:21:29 +0000 (18:21 -0400)]
Merge pull request #308 from shazow/timestamp-both

/timestamp: time and datetime modes

6 years ago/timestamp: time and datetime modes origin/timestamp-both
Andrey Petrov [Thu, 21 Mar 2019 21:12:32 +0000 (17:12 -0400)]
/timestamp: time and datetime modes

6 years agoMerge pull request #306 from shazow/fork-terminal
Andrey Petrov [Thu, 21 Mar 2019 19:40:28 +0000 (15:40 -0400)]
Merge pull request #306 from shazow/fork-terminal

Fork golang.org/x/crypto/ssh/terminal, remove echo override hack

6 years agogo mod tidy origin/fork-terminal
Andrey Petrov [Tue, 19 Mar 2019 16:11:56 +0000 (12:11 -0400)]
go mod tidy

6 years agosshchat, host: Switch to new terminal clearline api
Andrey Petrov [Thu, 21 Mar 2019 19:28:59 +0000 (15:28 -0400)]
sshchat, host: Switch to new terminal clearline api

6 years agosshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)
Andrey Petrov [Thu, 21 Mar 2019 19:23:55 +0000 (15:23 -0400)]
sshd/terminal: Switch terminal.ClearLine to termina.SetEnterClear(...)

6 years agosshchat: Fix tests to use new rendering format.
Andrey Petrov [Thu, 21 Mar 2019 17:39:33 +0000 (13:39 -0400)]
sshchat: Fix tests to use new rendering format.

6 years agosshd/terminal: Use N-moves in Terminal.move when possible
Andrey Petrov [Tue, 19 Mar 2019 19:05:13 +0000 (15:05 -0400)]
sshd/terminal: Use N-moves in Terminal.move when possible

6 years agosshd/terminal: Fix mid-line enter and reflow bugs
Andrey Petrov [Tue, 19 Mar 2019 16:09:54 +0000 (12:09 -0400)]
sshd/terminal: Fix mid-line enter and reflow bugs

6 years agolegal: Put sshd/terminal notice in root
Andrey Petrov [Mon, 18 Mar 2019 19:36:21 +0000 (15:36 -0400)]
legal: Put sshd/terminal notice in root

6 years agosshchat: Replace terminal echo hack with our forked terminal
Andrey Petrov [Sun, 17 Mar 2019 21:36:38 +0000 (17:36 -0400)]
sshchat: Replace terminal echo hack with our forked terminal

6 years agosshd/terminal: Add Terminal.ClearLine option
Andrey Petrov [Sun, 17 Mar 2019 21:35:49 +0000 (17:35 -0400)]
sshd/terminal: Add Terminal.ClearLine option

6 years agosshd/terminal: Add original LICENSE
Andrey Petrov [Sun, 17 Mar 2019 21:35:27 +0000 (17:35 -0400)]
sshd/terminal: Add original LICENSE

6 years agosshd/terminal: Import fork of x/crypto/ssh
Andrey Petrov [Sun, 17 Mar 2019 21:12:31 +0000 (17:12 -0400)]
sshd/terminal: Import fork of x/crypto/ssh

6 years agochat: Fix runtime bug with uninitialized strings builder
Andrey Petrov [Mon, 18 Mar 2019 14:08:12 +0000 (10:08 -0400)]
chat: Fix runtime bug with uninitialized strings builder

6 years agosshchat: Fix empty messages borking rendering
Andrey Petrov [Sun, 17 Mar 2019 20:10:16 +0000 (16:10 -0400)]
sshchat: Fix empty messages borking rendering

6 years ago/timestamp: Remove timezone by default for now
Andrey Petrov [Sun, 17 Mar 2019 20:05:38 +0000 (16:05 -0400)]
/timestamp: Remove timezone by default for now

6 years ago/timestamp: Switch TZINFO with UTC offset
Andrey Petrov [Sun, 17 Mar 2019 20:00:48 +0000 (16:00 -0400)]
/timestamp: Switch TZINFO with UTC offset

6 years agochat, internal/humantime: Tweak departure message
Andrey Petrov [Sun, 17 Mar 2019 19:01:41 +0000 (15:01 -0400)]
chat, internal/humantime: Tweak departure message

6 years agoMerge pull request #304 from shazow/autocomplete-sort
Andrey Petrov [Sun, 17 Mar 2019 18:42:04 +0000 (14:42 -0400)]
Merge pull request #304 from shazow/autocomplete-sort

chat: Sort NamesPrefix by recently active

6 years agochat: Sort NamesPrefix by recently active origin/autocomplete-sort
Andrey Petrov [Sat, 16 Mar 2019 19:27:43 +0000 (15:27 -0400)]
chat: Sort NamesPrefix by recently active

6 years ago/timestamp now prefixes each line with a timestamp
Andrey Petrov [Sun, 17 Mar 2019 18:05:22 +0000 (14:05 -0400)]
/timestamp now prefixes each line with a timestamp

Freakin' Timestamps On Every Freakin' Line

6 years agosshchat: Echo command messages with the new timestamp code.
Andrey Petrov [Sun, 17 Mar 2019 17:50:01 +0000 (13:50 -0400)]
sshchat: Echo command messages with the new timestamp code.

6 years agochat: Add timezone support to /timestamp
Andrey Petrov [Sat, 16 Mar 2019 16:20:43 +0000 (12:20 -0400)]
chat: Add timezone support to /timestamp

6 years agochat: Remove injectTimestamp after 30min stuff
Andrey Petrov [Fri, 15 Mar 2019 20:30:06 +0000 (16:30 -0400)]
chat: Remove injectTimestamp after 30min stuff

6 years agochat/message: Add second resolution
Andrey Petrov [Fri, 15 Mar 2019 20:26:39 +0000 (16:26 -0400)]
chat/message: Add second resolution

6 years agochat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting
Andrey Petrov [Fri, 15 Mar 2019 20:20:13 +0000 (16:20 -0400)]
chat/message: Add PublicMsg.RenderSelf(...) to support old-style formatting

6 years agosshchat, chat: Override terminal echo and do our own echo
Andrey Petrov [Fri, 15 Mar 2019 20:01:47 +0000 (16:01 -0400)]
sshchat, chat: Override terminal echo and do our own echo

6 years agoRevert "host: Add timestamps into prompt when enabled"
Andrey Petrov [Fri, 15 Mar 2019 19:57:50 +0000 (15:57 -0400)]
Revert "host: Add timestamps into prompt when enabled"

This reverts commit 6ce14bfc33e5a5aeb6003cdec9a873588eabe8f0.

We're going to do another approach.

6 years agohost: Add timestamps into prompt when enabled
Andrey Petrov [Wed, 6 Mar 2019 20:25:38 +0000 (12:25 -0800)]
host: Add timestamps into prompt when enabled

6 years agochat/message: Add timestamp prefix support
Andrey Petrov [Wed, 6 Mar 2019 20:25:02 +0000 (12:25 -0800)]
chat/message: Add timestamp prefix support

6 years agoMakefile: Use static builds by default
Andrey Petrov [Sat, 16 Mar 2019 02:56:48 +0000 (22:56 -0400)]
Makefile: Use static builds by default

6 years agobuild: Update go modules
Andrey Petrov [Sat, 16 Mar 2019 02:40:30 +0000 (22:40 -0400)]
build: Update go modules

6 years agomain: Skip command autocomplete if space-prefixed
Andrey Petrov [Fri, 15 Mar 2019 22:39:53 +0000 (18:39 -0400)]
main: Skip command autocomplete if space-prefixed

Fixes #300

6 years ago/reply: Set reply target properly
Andrey Petrov [Fri, 15 Mar 2019 22:32:46 +0000 (18:32 -0400)]
/reply: Set reply target properly

Fixes #299

6 years agomain: --admin and --whitelist: Skip non-key lines
Andrey Petrov [Fri, 15 Mar 2019 22:30:21 +0000 (18:30 -0400)]
main: --admin and --whitelist: Skip non-key lines

Closes #298

6 years ago/op: Fix room op being tied to the nick, add remove option
Andrey Petrov [Fri, 15 Mar 2019 22:18:20 +0000 (18:18 -0400)]
/op: Fix room op being tied to the nick, add remove option

Closes #301

6 years agochat: Use strings.Builder
Ulisse Mini [Sun, 24 Feb 2019 01:28:36 +0000 (20:28 -0500)]
chat: Use strings.Builder

6 years agoMakefile: Remove unneeded variable
UlisseMini [Fri, 25 Jan 2019 17:47:35 +0000 (12:47 -0500)]
Makefile: Remove unneeded variable

6 years agoMakefile: Use go test ./... to test all packages.
UlisseMini [Fri, 25 Jan 2019 17:46:37 +0000 (12:46 -0500)]
Makefile: Use go test ./... to test all packages.

6 years agosanitize: Move global variables to top of file
UlisseMini [Fri, 25 Jan 2019 17:39:21 +0000 (12:39 -0500)]
sanitize: Move global variables to top of file

6 years agochat: Use a string instead of a bytes.Buffer
UlisseMini [Fri, 25 Jan 2019 17:32:57 +0000 (12:32 -0500)]
chat: Use a string instead of a bytes.Buffer

6 years agosshd: Better comments and changed += 1 to ++
UlisseMini [Fri, 25 Jan 2019 17:25:05 +0000 (12:25 -0500)]
sshd: Better comments and changed += 1 to ++

6 years agosshd: Better comments
UlisseMini [Fri, 25 Jan 2019 17:23:41 +0000 (12:23 -0500)]
sshd: Better comments

6 years agochat: Better comments
UlisseMini [Fri, 25 Jan 2019 17:18:57 +0000 (12:18 -0500)]
chat: Better comments

6 years agohost.go: drop = 0 from declaration; it is the zero value (golint)
UlisseMini [Fri, 25 Jan 2019 17:09:15 +0000 (12:09 -0500)]
host.go: drop = 0 from declaration; it is the zero value (golint)

6 years agoBetter comments
UlisseMini [Fri, 25 Jan 2019 17:07:34 +0000 (12:07 -0500)]
Better comments

6 years agocmd/ssh-chat: Set ServerVersion to include ssh-chat
Andrey Petrov [Mon, 11 Feb 2019 20:21:56 +0000 (15:21 -0500)]
cmd/ssh-chat: Set ServerVersion to include ssh-chat

6 years agocmd, main: Return instead of os.Exit(0), use ioutil.Discard for default logger
Ulisse mini [Fri, 25 Jan 2019 18:42:27 +0000 (13:42 -0500)]
cmd, main: Return instead of os.Exit(0), use ioutil.Discard for default logger

* logger: change nil bytes.Buffer into ioutil.Discard

* cmd.go: Clearify imports

* cmd.go: Use return instead of os.Exit(0)

6 years agologger: change nil bytes.Buffer into ioutil.Discard (#293)
Ulisse mini [Wed, 23 Jan 2019 16:31:33 +0000 (11:31 -0500)]
logger: change nil bytes.Buffer into ioutil.Discard (#293)

6 years agochat: When a user leaves, add time since they joined to the exit message.
Robert Hailey [Wed, 2 Jan 2019 20:46:21 +0000 (14:46 -0600)]
chat: When a user leaves, add time since they joined to the exit message.

* Show the connection duration upon departure

* humantime: ugly sub-second precision replaces grammatically incorrect "1 seconds" message

* simplify function name

* humantime: repair unit test

* move: util/humantime -> internal/humantime

* go fmt everything