teleport是一款简单易用的堡垒机系统,运用在企业对windows.linux服务器的安全使用管理以及审计。
官网网址:http://teleport.eomsoft.net/ github地址:https://github.com/eomsoft/teleport
我接下来讲解和安装的是2.2.10版本,官网有3.0版本但是还是预览版有些功能没有完善。
teleport的windows远程是基于rdp,linux是基于ssh.
teleport2.2.10版本的安装很简单:
目前只支持部署到Linux系统中去,支持以下版本:
Ubuntu 14.04 64位 及以上版本
CentOS 6.2 64位 及以上版本
Debian 6.0 64位 及以上版本
Redhat 6.2 64位 及以上版本
我的安装环境是:centos7
下载安装包:
cd /tmp
wget http://teleport.eomsoft.net/static/download/opensource/teleport-server-linux-x64-2.2.10.1.tar.gz
解压安装包:
tar -zxvf teleport-server-linux-x64-2.2.10.1.tar.gz
cd teleport-server-linux-x64-2.2.10.1/
sudo ./setup.sh
默认的安装路径是/usr/local/teleport.以上就安装完成了,接下来我们需要开放一些端口以保证服务的正常运行。
firewall-cmd --add-port=7190/tcp --permanent (web访问端口7190)
firewall-cmd --add-port=52080/tcp --permanent(web后台RPC接口)
firewall-cmd --add-port=52089/tcp --permanent(RDP跳转服务)
firewall-cmd --add-port=52189/tcp --permanent(ssh跳转服务)
firewall-cmd --reload
teleport默认使用的数据库是sqlite,它也支持mysql,由于对sqlite不太熟悉,我这边使用的mariadb(从centos7开始mariadb为默认的数据库了)。
mariadb的安装这边我就不讲了,我这边以安装好了讲起。首先第一步我们需要创建teleport的数据库
CREATE database