Fork me on GitHub


Upgrading the Teleport Binary


In this guide, we will show you how to upgrade the teleport binary on a Linux host without sacrificing availability.

If you are running teleport as a container, see How to Run Teleport Using Docker for information on specifying a version.


This guide requires a host where the teleport binary is running. The version of the binary must be behind the latest.

For Teleport major version 10 the latest version is 10.1.2. Compare this to the version of Teleport you have installed on the host:

teleport version

Teleport v8.3.7 git:v8.3.7-0-ga8d066935 go1.17.3

Step 1/3. Download a new Teleport binary

Preserve the old binary, just in case the upgrade goes wrong.

DIR=$(which teleport | xargs dirname)
sudo mv ${DIR}/teleport ${DIR}/teleport.bak

Install the newest version of Teleport on the host:

Download Teleport's PGP public key

sudo curl \ -o /usr/share/keyrings/teleport-archive-keyring.asc

Source variables about OS version

source /etc/os-release

Add the Teleport APT repository for v10. You'll need to update this

file for each major (breaking) release of Teleport.

Note: if using a fork of Debian or Ubuntu you may need to use '$ID_LIKE'

and the codename your distro was forked from instead of '$ID' and '$VERSION_CODENAME'.

Supported versions are listed here:

echo "deb [signed-by=/usr/share/keyrings/teleport-archive-keyring.asc] \${ID?} ${VERSION_CODENAME?} stable/v10" \| sudo tee /etc/apt/sources.list.d/teleport.list > /dev/null

sudo apt-get update
sudo apt-get install teleport
sudo yum-config-manager --add-repo
sudo yum install teleport

Optional: Using DNF on newer distributions

$ sudo dnf config-manager --add-repo

$ sudo dnf install teleport


<checksum> <filename>

curl -O
shasum -a 256 teleport-v10.1.2-linux-amd64-bin.tar.gz

Verify that the checksums match

tar -xzf teleport-v10.1.2-linux-amd64-bin.tar.gz
cd teleport
sudo ./install

<checksum> <filename>

curl -O
shasum -a 256 teleport-v10.1.2-linux-arm-bin.tar.gz

Verify that the checksums match

tar -xzf teleport-v10.1.2-linux-arm-bin.tar.gz
cd teleport
sudo ./install

<checksum> <filename>

curl -O
shasum -a 256 teleport-v10.1.2-linux-arm64-bin.tar.gz

Verify that the checksums match

tar -xzf teleport-v10.1.2-linux-arm64-bin.tar.gz
cd teleport
sudo ./install

Using this APT repo may result in breaking upgrades upon "apt upgrade" as all major versions will be

published under the same component. We recommend following the instructions in the

"Debian/Ubuntu (DEB)" tab instead.

Download Teleport's PGP public key

sudo curl \ -o /usr/share/keyrings/teleport-archive-keyring.asc

Add the Teleport APT repository

echo "deb [signed-by=/usr/share/keyrings/teleport-archive-keyring.asc] stable main" \| sudo tee /etc/apt/sources.list.d/teleport.list > /dev/null

sudo apt-get update
sudo apt-get install teleport

Step 2/3. Fork the teleport process

Fork a new teleport process by sending it the USR2 signal:

sudo kill -USR2 $(pidof teleport)

The original teleport process forked a new child process and passed existing file descriptors to the child. You now have two processes handling requests on the same socket:

pidof teleport

235276 235119

In our example, 235276 is a PID of the child process, and 235119 is a PID of the parent.

You can use the following command, which prints the parent for each PID returned by pidof:

ps -o ppid= -p $(pidof teleport)



In the logs you will see that the parent process reports that it has forked a new child process, and the child accepts file descriptors from its parent.

2021-08-19T10:16:51-07:00 [PROC:1]  INFO Forked new child process. path:/usr/local/teleport service/signals.go:457
2021-08-19T10:16:51-07:00 [PROC:1]  INFO Using file descriptor diag passed by the parent process. service/signals.go:207

Step 3/3. Return to a single teleport process

After forking the new teleport process, check the logs to ensure that the process is running as expected. After that, you should either roll back or complete the upgrade:

If the new binary behaves with errors, shut down the child process:

sudo kill -TERM 235276

2022-04-20T15:33:58Z INFO [PROC:1] Got signal "terminated", exiting immediately. service/signals.go:86

2022-04-20T15:33:58Z WARN [PROC:1] Forked teleport process 235276 has exited with status: 0. service/signals.go:506


Do not forget to restore the original binary

sudo mv ${DIR}/teleport.bak ${DIR}/teleport

You can retry the process again later.


If you are upgrading a teleport daemon using an SSH connection established via Teleport, make sure to connect to the newly upgraded teleport process and shut down the previous teleport process from it.

You can see which teleport process handles the connection by using pstree:

pstree -aps $$

systemd,1 splash

└─systemd,6247 --user



└─pstree,242371 -aps 190718

Shut down the parent process gracefully using SIGQUIT:

sudo kill -QUIT 235119

The parent process will log a graceful shutdown:

2021-08-19T10:32:10-07:00 INFO [PROXY:SER] Shutting down gracefully. service/service.go:2952

In a couple of minutes, all existing connections drain off and the parent will exit:

pidof teleport


If for some reason, the parent process gets stuck (e.g., waiting for existing connections to finish), you can shut it down non-gracefully:

sudo kill -TERM 235119

You are all set.

Further reading

In this guide, we explained how to upgrade the teleport binary on a single host. If you would like to learn how to upgrade all of the components in a Teleport cluster while preserving compatibility, read Upgrading a Teleport Cluster.

See the full list of supported signals in the Teleport Signals Reference.