Find a file
Ev Kontsevoy b834c1020c Better error handling for connecting via reverse tunnel
Prior to this fix Teleport would not relay proxy errors from remote
clusters.

In other words, the following command:

```
$ tsh --cluster=remote ssh non-existing-host
```

Would print an error like:
"Cannot find a remote tunnel connection. ssh subsystem request failed"

Insead, it should say something like:
"dial non-existing-host error: no such host"

This commit fixes it. It works by:

- Sending net.Dial() error from the remote proxy back via stderr over
  reverse tunnel.

- Carefully handling this error to distinguish it from tunnel-related
  network errors.
2016-12-18 21:30:24 -08:00
build.assets instructions and dockerfile for building dynamodb static binaries 2016-12-14 15:51:55 -08:00
docs Docs changes to address issue #594 2016-12-16 22:07:28 -08:00
examples "Cluster snapshot" became "caching AP client" 2016-10-16 22:04:20 -07:00
fixtures Web assets are packed into teleport binary 2016-10-30 20:40:46 -07:00
Godeps revendor gravitational/trace to get trace.DebugReport 2016-12-09 14:44:19 -08:00
integration Client profiles for TSH 2016-10-22 12:54:16 -07:00
lib Better error handling for connecting via reverse tunnel 2016-12-18 21:30:24 -08:00
tool Minor change 2016-12-15 08:21:42 -08:00
vagrant .tsh profile change 2016-11-30 15:46:36 -08:00
vendor Better error handling for connecting via reverse tunnel 2016-12-18 21:30:24 -08:00
web compile new js files 2016-12-13 12:15:16 -08:00
.gitattributes fix linguist stats for project 2016-06-02 20:50:30 +03:00
.gitignore Better timeout handling 2016-12-14 18:08:40 -08:00
constants.go Proper handling of attached/detached terminals 2016-09-10 21:59:16 -07:00
CONTRIBUTING.md remove broken link 2016-11-29 15:58:36 -08:00
LICENSE Apply apache license to teleport 2015-10-31 11:56:49 -07:00
Makefile Better error handling for connecting via reverse tunnel 2016-12-18 21:30:24 -08:00
mkdocs.yml (docs) fixing mkdocs configuration file 2016-03-25 12:50:28 -04:00
README.md Update README.md 2016-11-30 16:20:45 -08:00
roles.go Some cleanup for PR. Mostly appId -> appID, U2f -> U2F 2016-12-08 02:23:51 -08:00
version.go Better error handling for connecting via reverse tunnel 2016-12-18 21:30:24 -08:00
version.mk Replaced echo with printf in Makefile 2016-06-29 19:12:19 -07:00

Gravitational Teleport

Project Links Description
Teleport Website The official website of the project
Documentation Admin guide, user manual and more
Demo Video 3-minute video overview of the UI.
Teleconsole The free service to "invite" SSH clients behind NAT, built on top of Teleport
Blog Our blog where we publish Teleport news

Introduction

Gravitational Teleport is a modern SSH server for remotely accessing clusters of Linux servers via SSH or HTTPS. It is intended to be used instead of sshd. Teleport enables teams to easily adopt the best SSH practices like:

  • No need to distribute keys: Teleport uses certificate-based access with automatic expiration time.
  • Enforcement of 2nd factor authentication.
  • Cluster introspection: every Teleport node becomes a part of a cluster and is visible on the Web UI.
  • Record and replay SSH sessions for knowledge sharing and auditing purposes.
  • Collaboratively troubleshoot issues through session sharing.
  • Connect to clusters located behind firewalls without direct Internet access via SSH bastions.
  • Ability to integrate SSH credentials with your organization identities via OAuth (Google Apps, Github).

Teleport is built on top of the high-quality Golang SSH implementation and it is fully compatible with OpenSSH.

Installing and Running

Download the latest binary release, unpack the .tar.gz and run sudo make install. This will copy Teleport binaries into /usr/local/bin.

Then you can run Teleport as a single-node cluster:

teleport start 

Building Teleport

Teleport source code consists of the actual Teleport daemon binary written in Golang, and also it has a web UI (located in /web directory) written in Javascript. The WebUI is not changed often and we keep it checked into Git under /dist, so you only need to build Golang:

Make sure you have Golang v1.7 or newer, then run:

  1. go get github.com/gravitational/teleport
  2. cd $GOPATH/src/github.com/gravitational/teleport
  3. CGO_ENABLED=true make

If the build was successful the binaries are here: $GOPATH/src/github.com/gravitational/teleport/build

You'll have to create /var/lib/teleport directory and then you can start Teleport as a single-node cluster in development mode: build/teleport start -d

If you want to release your own Teleport version, edit this Makefile, update VERSION and SUFFIX constants, then run make setver to update version.go

If you want to cut another binary release tarball, run make release.

NOTE: The Go compiler is somewhat sensitive to amount of memory: you will need at least 1GB of virtual memory to compile Teleport. 512MB instance without swap will not work.

Rebuilding Web UI

If you want to make changes to the web UI, you have to re-build the content of /dist directory See web/README.md for instructions on how to update the Web UI.

Why did We Build Teleport?

Mature tech companies with significant infrastructure footprints tend to implement most of these patterns internally. Teleport allows smaller companies without significant in-house SSH expertise to easily adopt them, as well. Teleport comes with an accessible Web UI and a very permissive Apache 2.0 license to facilitate adoption and use.

Being a complete standalone tool, Teleport can be used as a software library enabling trust management in complex multi-cluster, multi-region scenarios across many teams within multiple organizations.

More Information

Contributing

The best way to contribute is to create issues or pull requests right here on Github. You can also reach the Gravitational team through their website

It is possible to make changes to the Web UI without having to rebuild and restart teleport. Simply launch it with DEBUG environment variable set from $GOPATH:

$ DEBUG=1 $GOPATH/gravitational/teleport/build/teleport start

Status

Teleport has completed a security audit from a nationally recognized technology security company. So we are comfortable with the use of Teleport from a security perspective.

However, Teleport is still a relatively young product so you may experience usability issues. We are actively supporting Teleport and addressing any issues that are submitted to this repo. Ask questions, send pull requests, report issues and don't be shy! :)

The latest stable Teleport build can be found in Releases

Known Issues

  • Teleport does not officially support IPv6 yet.

Who Built Teleport?

Teleport was created by Gravitational Inc. We have built Teleport by borrowing from our previous experiences at Rackspace. It has been extracted from Gravity, our system for helping our clients to deploy and remotely manage their SaaS applications on many cloud regions or even on-premise.