美文网首页码农的世界
绝对干货SSH web豪华版

绝对干货SSH web豪华版

作者: 大猪大猪 | 来源:发表于2018-12-05 01:37 被阅读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

相关文章

网友评论

    本文标题:绝对干货SSH web豪华版

    本文链接:https://www.haomeiwen.com/subject/onbbcqtx.html