---
title: SSH
description: Connecting to a Futrou v1 Serverlet over SSH.
---

## Connecting to a Serverlet using SSH

Unlike most ordinary web hosting, a Serverlet supports SSH access. That lets you control the Serverlet as comfortably as your own computer.

> **Tip:** Before the first login you have to set a password for the `applet` user.

Every Serverlet has its own SSH port. You will find it in the administration on the **Overview** card, together with a ready-made command for a quick connection.

```bash
ssh {user}@{host} -p {serverlet-port}
```

For example:

```bash
ssh applet@serlo.futrou.com -p 10022
```

On Linux and on Windows 10 and newer it is enough to enter the command in the terminal. In other cases we recommend the PuTTY client.

## Port forwarding

SSH lets you expose a port of an application from the remote Serverlet on your local computer:

```bash
ssh -L 127.0.0.1:{local-port}:{physical-server}:{application-port} {user}@{physical-server} -p {serverlet-port}
```

For example, this command exposes the remote web server at the local address `127.0.0.1:80`:

```bash
ssh -L 127.0.0.1:80:serlo.futrou.com:80 applet@serlo.futrou.com -p 10022
```

## Logging in with a public key

A private and public key pair allows you to log in without a password. First create a key:

```bash
ssh-keygen -t ecdsa -b 384 -C {e-mail}
```

Upload the public key `id_ecdsa.pub` to the `.ssh/` directory in the home directory of the Serverlet user. For the `applet` user that is `/srv/.ssh/`. You can upload it over SFTP, or use:

```bash
ssh-copy-id -i {public-key-location} {user}@{physical-server} -p {serverlet-port}
```

For example:

```bash
ssh-copy-id -i /home/user/.ssh/id_ecdsa.pub applet@serlo.futrou.com -p 10022
```