Ubuntu Web based Terminal - wetty
# sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
==> enable 'sshd password authentication'
# service ssh restart
# apt-get install nodejs npm
# npm install -g wetty (or) yarn global add wetty
# curl https://gist.githubusercontent.com/subicura/9058671c16e2abd36533fea2798886b0/raw/e5d249612711b14c9c8f44798dea1368395e86a9/wetty.service -o /lib/systemd/system/wetty.service
=> vi /lib/systemd/system/wetty.service
----------------------------------------
[Unit]
Description=wetty service
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=root
ExecStart=/usr/local/bin/wetty -p 4200 --base=/
[Install]
WantedBy=multi-user.target
----------------------------------------
# systemctl start wetty
# systemctl enable wetty
<connect with web browser 'http://ip-addr:4200'