开源堡垒机Teleport

仅需一分钟,就可以安装部署一套您自己的堡垒机系统!!

1.安装teleport

# cd /software
# wget https://tp4a.com/static/download/teleport-server-linux-x64-3.2.2.tar.gz
# tar xf teleport-server-linux-x64-3.2.2.tar.gz
# cd teleport-server-linux-x64-3.2.2/
# ./setup.sh

默认路径安装,一脚回车

2.启动

安装好后,服务默认开启

Teleport 有两个服务:

* 核心服务 `core`   配置文件路径为 `/usr/local/teleport/data/etc/core.ini`
* 网页服务 `web`    配置文件路径为 `/usr/local/teleport/data/etc/web.ini`

操作完整的 teleport 服务:

- 启动: `/etc/init.d/teleport start`
- 停止: `/etc/init.d/teleport stop`
- 重启: `/etc/init.d/teleport restart`
- 查看运行状态: `/etc/init.d/teleport status`

仅操作核心服务 core:

- 启动: `/etc/init.d/teleport start core`
- 停止: `/etc/init.d/teleport stop core`
- 重启: `/etc/init.d/teleport restart core`

仅操作网页服务 web:

- 启动: `/etc/init.d/teleport start web`
- 停止: `/etc/init.d/teleport stop web`
- 重启: `/etc/init.d/teleport restart web`

3.访问teleport的web服务

安装完后
# ss -nltp
占用7190端口,成功。

浏览器访问 http://IP:7190

4.安装mysql

安装:略

配置:

mysql > create database teleport default character set utf8;
mysql > grant all on teleport.* to 'teleport'@'堡垒机IP' identified by '123';
mysql > flush privileges;
mysql > quit

5.teleport配置

# vi /usr/local/teleport/data/etc/web.ini
# grep -Ev ';|^$' /usr/local/teleport/data/etc/web.ini	# 修改后的配置如下
[common]
port=7190
log-level=2
debug-mode=0
core-server-rpc=http://127.0.0.1:52080/rpc

[database]
type=mysql
mysql-host=mysql服务IP
mysql-port=3306
mysql-db=teleport
mysql-prefix=tp_
mysql-user=teleport
mysql-password=123

浏览器刷新 http://IP:7190

确定数据库类型:

数据库类型:    MySQL
MySQL主机:    IP
MySQL端口:    3306
数据库名称:    teleport
用户名:    teleport

 

设置系统管理员:自行填写。

点击 开始配置

配置完成,原地刷新,登录。

6.使用

windows端:https://tp4a.com/download/get-file/teleport-assist-windows-3.2.2.exe

下载,安装,运行。

1.资产 → 主机 → 添加主机

2.添加账号(账号数下面),填表,测试连接

3.审计 → 会话审计 → 回放

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值