web based ssh server

最後更新: 2016-07-27

 

Server

shellinabox

Homepage: http://shellinabox.com

Install: apt-get install shellinabox

- publish command line shell through AJAX interface

- stand-alone service

- it prompts for username and password and then exports a SSL/TLS encrypted login shell

webssh (Python)

bastillion

- self hosted

Client

FireSSH

 - plug-in that works on Firefox ESR

 


shellinabox 介紹

 

* 支援 color

* support right-click

 

# Install

apt-get install openssl shellinabox

# Configure

vi /etc/default/shellinabox

# Listen Port, Default: 4200
SHELLINABOX_PORT=8080

# -t | --disable-ssl
SHELLINABOX_ARGS="-t"

# Start Service

service shellinabox restart

# Testing

netstat -ntlp | grep shellinabox

 


Tips

 

# Service

-s | --service=service

If no particular service was requested, the server launches /bin/login querying the user for their username and password. It then starts the user's default login shell.

i.e. The terminal connects to a ssh session on example.org.

shellinaboxd -s /:SSH:example.org

# static-file

The daemon serves various built-in resources from URLs underneath the service mount points.

-f | --static-file=url:file

i.e. Runs all services with the audible-bell permanently disabled.

shellinaboxd -t -f beep.wav:/dev/null

# 黑底白字 (U16)

rm -i /etc/shellinabox/options-enabled/*

ln -s "/etc/shellinabox/options-available/00_White On Black.css" \

       "/etc/shellinabox/options-enabled/00+White On Black.css"

Options that should be turned on by default have the "_" character replaced with a "+" character.