# SSH

Source: https://docs.sliplane.io/services/ssh

Learn how to connect to your services via SSH.

## SSH Access Methods in Sliplane

[Direct SSH to Container](/services/ssh#direct-ssh-connection)

Open a container shell. SCP and rsync require those tools in the container.

[SSH Tunneling](/guides/ssh)

Reach private services through port forwarding, SCP or rsync.

## Direct SSH Connection

This method connects you directly into a specific container's shell.

### Prerequisite

You need to have an SSH key pair set up on your local machine.

You can follow [this guide](https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent) in order to generate an SSH key pair and add it to your SSH agent.

## Attach your SSH key to a service

* Navigate to the service that you want to connect via SSH
* Click on the "SSH" tab in the service dashboard
* Click on "Attach SSH key"
* Select your SSH key from the list or click on "Add new key" if you haven't added any SSH keys to your account yet

> **info**
>
> You can also manage all of your SSH keys in your [account settings](https://sliplane.io/app/account/ssh) in the SSH tab.

## Connect to your service via SSH

Copy the command from the service’s SSH tab and run it in your terminal. For example:

```bash
ssh -p 22222 service_12345@server_domain
```
