4 月 202016
Web based AJAX terminal emulator
安装EPEL源
[root@localhost ~]# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm [root@localhost ~]# yum makecache
查看软件包描述信息
安装shellinabox软件包
[root@localhost ~]# yum install shellinabox
查看shellinabox软件包安装路径和文件
[root@localhost ~]# rpm -lq shellinabox /etc/rc.d/init.d/shellinaboxd /etc/sysconfig/shellinaboxd /usr/sbin/shellinaboxd /usr/share/doc/shellinabox-2.19 /usr/share/doc/shellinabox-2.19/AUTHORS /usr/share/doc/shellinabox-2.19/COPYING /usr/share/doc/shellinabox-2.19/GPL-2 /usr/share/doc/shellinabox-2.19/NEWS /usr/share/doc/shellinabox-2.19/README /usr/share/doc/shellinabox-2.19/README.Fedora /usr/share/doc/shellinabox-2.19/print-styles.css /usr/share/doc/shellinabox-2.19/shell_in_a_box.js /usr/share/doc/shellinabox-2.19/styles.css /usr/share/man/man1/shellinaboxd.1.gz /usr/share/shellinabox /usr/share/shellinabox/color.css /usr/share/shellinabox/monochrome.css /usr/share/shellinabox/white-on-black.css /var/lib/shellinabox [root@localhost ~]#
启动服务
[root@localhost ~]# service shellinaboxd start Starting shellinaboxd: [ OK ] [root@localhost ~]#
查看端口监听
[root@localhost ~]# netstat -ltn |grep 4200 tcp 0 0 0.0.0.0:4200 0.0.0.0:* LISTEN [root@localhost ~]#
新建用户并设置密码
[root@localhost ~]# useradd harveymei [root@localhost ~]# passwd harveymei Changing password for user harveymei. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@localhost ~]#
使用浏览器访问Shell In A Box服务,忽略证书安全提示并继续
出现登录提示符
登录,并执行命令操作
退出shell后,点击Connect可重新开始登录会话
主配置文件
[root@localhost ~]# vi /etc/sysconfig/shellinaboxd