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

shellinabox安装

南门焱
2023-12-01

Shell In A Box(发音是shellinabox)是一款基于Web的终端模仿器,由Markus Gutschke开辟而成。它有内置的Web办事器,在指定的端口上作为一个基于Web的SSH客户端而运行,可认为你供给一个Web终端模仿器,以便应用任何支撑AJAX/JavaScript和CSS的浏览器,长途接见和把握你的Linux办事器SSH外壳,不须要像FireSSH这些任何额外的浏览器插件。

在基于红帽的发行版上,你须要先启用EPEL软件库,然后应用下面这个"yum"号令来安装它。

yum install openssl shellinabox

默认景象下,shellinaboxd侦听本地主机上的TCP端口4200。出于安全考虑,可以改成任何你想要的端口。在安装过程中,一个新的自SSL会在"/var/lib/shellinabox"下主动创建,以便应用HTTPS和谈。

在RHEL、CentOS和Fedora上配置文件在/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=9999 ##监听端口,默认是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:176.16.10.5"##监听地址 

修改完配置文件之后启动服务

service shellinaboxd start

查看端口监听,有结果而且端口是你修改的端口,那么一切ok

netstat -lntup|grep shellinaboxd

使用浏览器打开,格式为https://176.16.10.5:9999

转载于:https://www.cnblogs.com/fengjian2016/p/5266105.html

 类似资料: