Skip to content

Instantly share code, notes, and snippets.

@goose121
Created January 3, 2018 02:52
Show Gist options
  • Select an option

  • Save goose121/531b88f8735191379d59ea47bff90736 to your computer and use it in GitHub Desktop.

Select an option

Save goose121/531b88f8735191379d59ea47bff90736 to your computer and use it in GitHub Desktop.
An OpenRC service for ssh-chat
# Config for /etc/init.d/ssh-chat
# See `/usr/bin/ssh-chat --help` for more details
# The admin's key fingerprint
#admin_fingerprint=SHA256:[INSERT HERE]
# The server's private key
server_ident=[INSERT HERE]
# The port to bind to
# port=22
# The whitelist file
# whitelist=""
# The MOTD (Message Of The Day) file
# motd=""
# The logfile location
log="/var/log/ssh-chat.log"
#!/sbin/openrc-run
name="$RC_SVCNAME"
description="Chat server over SSH"
command="/usr/local/bin/ssh-chat"
command_args="-i '$server_ident' --bind='$port' --admin='$admin_fingerprint' --whitelist='$whitelist' --motd='$motdfile
' --log=$logfile"
pidfile="/run/$RC_SVCNAME.pid"
command_background="yes"
command_user="nobody" # If you want to secure your keyfile, you should change this to a
# user specifically for running ssh-chat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment