开源堡垒机Teleport安装

Teleport是一款简单易用的堡垒机系统,具有小巧、易用的特点,支持 RDP/SSH/SFTP/Telnet 协议的远程连接和审计管理。

Teleport由两大部分构成:

  • 跳板核心服务
  • WEB操作界面

Teleport非常小巧且极易安装部署:仅需一分钟,就可以安装部署一套您自己的堡垒机系统!!

官方文档

https://docs.tp4a.com/

安装

下载二进制安装包

wget https://www.tp4a.com/download/get-file/teleport-server-linux-x64-3.2.2.tar.gz

解压安装包

tar xf teleport-server-linux-x64-3.2.2.tar.gz

备注:

在下载完官方tar压缩文件进行解压的时候报错,不是gzip压缩文档,所以我下到windows本地解压后使用zip打包后又传到服务器中。

安装teleport服务

cd teleport-server-linux-x64-3.2.2/
chmod 777 -R .
sh ./setup.sh 

不给777权限报错./setup.sh:行14: /root/teleport-server-linux-x64-3.2.2/data/bin/tp_web: 权限不够

下面附上安装过程(安装过程我采用默认/usr/local/teleport)

[root@teleport teleport-server-linux-x64-3.2.2]# sh ./setup.sh      

[]===========================================================================[]
 | Teleport Server Installation                                              |
 |===========================================================================|
 |    ver: 3.2.2                                                             |
 | author: apex.liu@qq.com                                                   |
[]===========================================================================[]

Welcome to install Teleport Server!

NOTICE: There are a few steps need you enter information or make choice,
        if you want to use the DEFAULT choice, just press `Enter` key.
        Otherwise you need enter the highlight character to make choice.


Prepare installation...
 - check local installation ... [not exists]


Set installation path [/usr/local/teleport]: 
 - copy [/root/teleport-server-linux-x64-3.2.2/data/bin]
     -> [/usr/local/teleport/bin]
 - copy [/root/teleport-server-linux-x64-3.2.2/data/www]
     -> [/usr/local/teleport/www]
 - copy [/root/teleport-server-linux-x64-3.2.2/data/tmp/etc]
     -> [/usr/local/teleport/data/etc]
process [daemon.in] to [/etc/init.d/teleport]
process [start.sh.in] to [/usr/local/teleport/start.sh]
process [stop.sh.in] to [/usr/local/teleport/stop.sh]
process [status.sh.in] to [/usr/local/teleport/status.sh]

start services...
starting teleport web ... [done]
starting teleport core server ... [done]

check services status...
teleport web server is running.
teleport core server is running.

--==[ ALL DONE ]==--

查看是否监听7190端口

查看服务的监听

初始化配置

打开浏览器访问http://x.x.x.x:7190

数据库默认使用SQLite,也支持MySQL数据库,官方有文档说明,这里就不再陈诉。设置好自己的系统管理员账号密码就可以了。

出现如下界面就代表安装成功了。

输入自己的用户名和密码就可以登陆使用了

发表评论

后才能评论