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

查看软件包描述信息

shell-in-a-box-install-and-config-01

安装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-in-a-box-install-and-config-02

出现登录提示符

shell-in-a-box-install-and-config-03

登录,并执行命令操作

shell-in-a-box-install-and-config-04

退出shell后,点击Connect可重新开始登录会话

shell-in-a-box-install-and-config-05

主配置文件

[root@localhost ~]# vi /etc/sysconfig/shellinaboxd

shell-in-a-box-install-and-config-06

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据