码农的世界

绝对干货SSH web豪华版

2018-12-05  本文已影响4人  大猪大猪

不想解释历史背景了,演示图说明了一切。

功能演示

安装

RHEL/CentOS/Fedora

yum install shellinabox -y

配置
vi /etc/sysconfig/shellinaboxd
请加上最后一句,否则连不上

# Shell in a box daemon configuration
# For details see shellinaboxd man page

# Basic options
USER=shellinabox
GROUP=shellinabox
CERTDIR=/var/lib/shellinabox
PORT=4200
OPTS="--disable-ssl-menu -s /:LOGIN"


# Additional examples with custom options:

# Fancy configuration with right-click menu choice for black-on-white:
# OPTS="--user-css Normal:+black-on-white.css,Reverse:-white-on-black.css --disable-ssl-menu -s /:LOGIN"

# Simple configuration for running it as an SSH console with SSL disabled:
# OPTS="-t -s /:SSH:host.example.com"
OPTS="-t -s /:SSH:192.168.0.100"
# 或者只能本地连接
# OPTS="-t -s /:SSH:192.168.0.100  --localhost-only"

启动

systemctl restart shellinaboxd

Debian/Ubuntu/Linux Mint
安装

apt-get install shellinabox

配置
vi /etc/default/shellinabox
-----> 配置内容同上 <-----
启动

service shellinaboxd start
上一篇 下一篇

猜你喜欢

热点阅读