在公有云上,我们常看到通过浏览器能向远程的服务器发送命令,初看是不是很神奇。 今天我们用shellinabox为例来体验一下,shellinabox是一款基于 Web 的远程 Terminal 开源模拟器软件,本篇文章基于centos7.3环境。
安装 EPEL yum源
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -ivh epel-release-latest-7.noarch.rpm
yum repolist
安装shellinabox,关闭https
yum -y install shellinabox
vim /etc/sysconfig/shellinaboxd
--
OPTS="--disable-ssl-menu -t -s /:LOGIN"
--
systemctl start shellinaboxd
[root@pangu ~]# ls /var/lib/shellinabox/
certificate-localhost.pem certificate.pem
新建普通用户
useradd icai
passwd icai