当前位置: 首页 > 工具软件 > Shellinabox > 使用案例 >

Shellinabox on centos6.9

琴正初
2023-12-01

介绍

一款实用的web linux终端, 并且保证操作安全性(屏蔽root用户)

下面以centos6.9为例

安装

首先安装epel仓库,再安装shellinabox

yum -y install epel-release
yum -y install shellinabox

配置端口

编辑/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"

启动,开机自启动

/etc/init.d/shellinaboxd start
chkconfig shellinaboxd on

转载于:https://www.cnblogs.com/dzqk/p/9533817.html

 类似资料:

相关阅读

相关文章

相关问答