shazow / ssh-chat

Chat over SSH.
https://shazow.net/posts/ssh-how-does-it-even/
MIT License
5.59k stars 408 forks source link

main: Add --unsafe-passphrase #342

Closed shazow closed 4 years ago

shazow commented 4 years ago

Fixes #288

Looks like this:

image

Updated usage:

Usage:
  ssh-chat [OPTIONS]

Application Options:
  -v, --verbose            Show verbose logging.
      --version            Print version and exit.
  -i, --identity=          Private key to identify server with. (default: ~/.ssh/id_rsa)
      --bind=              Host and port to listen on. (default: 0.0.0.0:2022)
      --admin=             File of public keys who are admins.
      --whitelist=         Optional file of public keys who are allowed to connect.
      --motd=              Optional Message of the Day file.
      --log=               Write chat log to this file.
      --pprof=             Enable pprof http server for profiling.

Help Options:
  -h, --help               Show this help message

There are hidden options and easter eggs in ssh-chat. The source code is a good
place to start looking. Some useful links:

* Project Repository:
  https://github.com/shazow/ssh-chat
* Project Wiki FAQ:
  https://github.com/shazow/ssh-chat/wiki/FAQ
* Command Flags Declaration:
  https://github.com/shazow/ssh-chat/blob/master/cmd/ssh-chat/cmd.go#L29

A little sad about the length of --unsafe-passphrase but I feel it's worth it.

Also kinda wanna make it a hidden option (documented in the wiki), what do people think of that?