Skip to content

Instantly share code, notes, and snippets.

@vemacs
Created February 8, 2017 03:50
Show Gist options
  • Save vemacs/bfc3c84a5a36e11abc1804ecf92bb0cc to your computer and use it in GitHub Desktop.
Save vemacs/bfc3c84a5a36e11abc1804ecf92bb0cc to your computer and use it in GitHub Desktop.
# systemd unit file
# place in /etc/systemd/system
# systemctl enable gotty.service
# systemctl start gotty.service
[Unit]
Description=Gotty Web Terminal
After=network.target
[Service]
User=gotty
Group=gotty
Environment=TERM=xterm-256color
ExecStart=/home/gotty/gotty -a 127.0.0.1 -p "4200" -w ssh root@localhost
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment