# Connect an SSH host

> Add a host, verify its identity and diagnose key-agent problems.

Have the hostname, port, username and an SSH key accepted by the server ready. Get its host-key fingerprint from the administrator or a trusted console.

1. Find **Remote machines** in Settings and add a host. Enter its connection details.
2. For a key held by the system agent, choose **SSH agent (recommended)**. Open **Manage keys** to see whether the key is loaded and unlock it if necessary.
3. Connect and verify the displayed fingerprint. Once connected, choose the host and a remote working directory in a supported task.

For `SSH_AGENT_UNAVAILABLE`, run `ssh-add -l` in the computer’s terminal to list loaded keys. If the host key changed, verify the new fingerprint from the server console before updating trust. [Look up an error code](/docs/en/reference/errors/)
