1.インストール
yum install openssl shellinabox
2.構成
vim /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"
OPTS="-t -s /:SSH:192.168.8.179" #添加ip
# 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"
~
3.ファイアウォールを解放します
[root@gitlab179 ~]# firewall-cmd --permanent --add-port=4200/tcp
4.ファイアウォールルールをリセットします
[root@gitlab179 ~]# firewall-cmd --reload
success
5.サービスを開始します
[root@gitlab179 ~]# systemctl start shellinaboxd
6.ブラウザアクセス