> ## Documentation Index
> Fetch the complete documentation index at: https://www.aptible.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# aptible ssh Permission Denied

If you get an error indicating `Permission denied (publickey)` when using [`aptible ssh`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-ssh) (or [`aptible db:tunnel`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-db-tunnel), [`aptible logs`](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/cli-logs)), follow the instructions below.

This issue is caused by a bug in OpenSSH 7.8 that broke support for client certificates, which Aptible uses to authenticate [Ephemeral SSH Sessions](https://www.aptible.com/docs/core-concepts/apps/connecting-to-apps/ssh-sessions.md) sessions.

This only happens if you installed the [Aptible CLI](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/overview) from source (as opposed to using the Aptible Toolbelt).

To fix the issue, follow the [Aptible CLI installation instructions](https://www.aptible.com/docs/reference/aptible-cli/cli-commands/overview) and make sure to install the CLI using the Aptible Toolbelt package download.
