Shellinabox on centos6.9

介绍

一款实用的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
上一篇:AVL树与红黑树(R-B树)的区别与联系


下一篇:Android TextView 实现文字大小不同和文字颜色不同