---
title: "Connection details"
url: https://docs.corefinity.com/guides/sites/access-and-security/connection-details
type: guide
last_updated: 2026-11-13
feature: access
related:
  - https://docs.corefinity.com/api/reference/access/get-site-access.md
  - https://docs.corefinity.com/api/reference/access/delete-site-access-key.md
  - https://docs.corefinity.com/api/reference/access/get-site-access-operation.md
  - https://docs.corefinity.com/api/reference/access/create-site-access-user.md
  - https://docs.corefinity.com/api/reference/access/update-site-access-user.md
  - https://docs.corefinity.com/api/reference/access/delete-site-access-user.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_access_get.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_user_create.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_user_update.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_user_delete.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_user_key_add.md
  - https://docs.corefinity.com/mcp/tools/corestack_ssh_user_key_delete.md
---
# Connection details

Find the host, port, usernames and commands for connecting to a site over SSH and SFTP, and for reaching its database from your computer.

## Before you start

- You can open the site in **Managed Websites**. Anyone who can open a site can see its connection details.
- Each environment has its own details: choose **Production** or **Staging** in the site header first.
- To connect, you need an [SSH key](/guides/sites/access-and-security/ssh-keys) or an [SSH or SFTP user](/guides/sites/access-and-security/ssh-and-sftp-users) on the site, and your IP address on its [firewall](/guides/sites/access-and-security/firewall).

## Find the details

1. **Open Connection details**

   Go to **Managed Websites**, choose the site, then **Connection details** under **Access & security**.

   _Screenshot: A site page with Connection details ringed in the menu. The Connection card shows the host, the port, your username, the shared username web and the SSH, SFTP and Database tunnel commands, each with a Copy button._

2. **Copy what you need**

   Each field on the **Connection** card has a **Copy** button.

   | Field                 | Use it for                                                                                         |
   | --------------------- | -------------------------------------------------------------------------------------------------- |
   | **Host** and **Port** | Any SSH or SFTP client. Use SFTP on this port, not FTP.                                            |
   | **Shared username**   | Logging in as `web`, with a key added as **This environment**, **This website** or **My company**. |
   | **SSH**               | The command for a shell.                                                                           |
   | **SFTP**              | The command for file transfer.                                                                     |
   | **Database tunnel**   | Reaching the database from your computer.                                                          |
   | **Copy known_hosts**  | The host keys, so your SSH client can check it is talking to the right server.                     |

   **Your username** is for logging in as yourself, with a key added as **Me**.

## Connect to the database from your computer

1. **Open the tunnel**

   Copy **Database tunnel**, run it in a terminal on your computer and leave it running.

2. **Connect your database client**

   Choose **Database** under **Site settings**. Connect your client to the **Host**, **Port** and **Database** on its **Connection details** card, signing in as a [database user](/guides/sites/database/database-users).

   _Screenshot: The Connection details card of the Database section: the MariaDB version, Host 127.0.0.1, Port 3306, the database name and the SSH tunnel command._

## Automate this

**API:** [Get a site's SSH and SFTP access](https://docs.corefinity.com/api/reference/access/get-site-access.md), scope `read`

```bash
curl https://manage.corefinity.com/api/corestack/sites/1042/access \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json"
```

**MCP:** [`corestack_ssh_access_get`](https://docs.corefinity.com/mcp/tools/corestack_ssh_access_get.md), scope `read`

```json
{
  "name": "corestack_ssh_access_get",
  "arguments": {
    "site_id": 4211
  }
}
```

**Control Panel:** Managed Websites › your site › Access & security › Connection details ([https://manage.corefinity.com/go/access](https://manage.corefinity.com/go/access))

## Related

- [SSH keys](/guides/sites/access-and-security/ssh-keys): Add a key to log in over SSH.
- [Firewall](/guides/sites/access-and-security/firewall): Allow an IP address to reach a site.
- [Browser terminal](/guides/sites/access-and-security/browser-terminal): Open a shell on a site without SSH.
