开源jumpserver 堡垒机搭建

华盟原创文章投稿奖励计划

Jumpserver 是一款由python编写开源的跳板机(堡垒机)系统,实现了跳板机应有的功能。基于ssh协议来管理,客户端无需安装agent。

Jumpserver 特点:完全开源,GPL授权 
Python编写,容易再次开发 
实现了跳板机基本功能,认证、授权、审计 
集成了Ansible,批量命令等 
支持WebTerminal 
Bootstrap编写,界面美观 
自动收集硬件信息 
录像回放 
命令搜索 
实时监控 
批量上传下载
环境:
CentOS 6.x x86_64 mini service iptables stop
关闭SELinux的方法:修改/etc/selinux/config文件中的SELINUX=”” 为 disabled ,然后重启。

如果不想重启系统,使用命令setenforce 0
指定yum源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
wget-O/etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyuncom/repo/Centos-6.repo
安装依赖rpm
wget-O/etc/yum.repos.d/CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos6.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
yum clean all && yum makecache
yum -y install git python-pip mysql-devel gcc automake autoconf python-devel vim sshpass lrzsz readline-devel
下载jumpserver
cd /opt 
git clone https://github.com/jumpserver/jumpserver.git
执行快速安装脚本
cd jumpserver/install && pip install -r requirements.txt 
安装好了如图

开源jumpserver 堡垒机搭建

pip freeze  查看安装包

开源jumpserver 堡垒机搭建

python install.py   运行脚本

开源jumpserver 堡垒机搭建

如果需要安装MySQL就选择Y即可

开源jumpserver 堡垒机搭建

安装成功

根据提示输入相关信息,完成安装,完成安装后,请访问web,继续查看后续文档如果启动失败,请返回上层目录,手动运行 ./service.sh start启动如果./service.sh start启动失败请进入jumpserver目录,手动运行python manage.py runserver 0.0.0.0:80python run_websocket.py如果启动失败,可能是由于 80端口和3000端口已经被占用,或者数据库账号密码不对,请检查
进入访问:

开源jumpserver 堡垒机搭建

本文原创,作者:congtou,其版权均为华盟网所有。如需转载,请注明出处:https://www.77169.net/html/240805.html

发表回复