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.
On this page
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 or an SSH or SFTP user on the site, and your IP address on its firewall.
Find the details
Open Connection details
Go to Managed Websites, choose the site, then Connection details under Access & security.
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
Open the tunnel
Copy Database tunnel, run it in a terminal on your computer and leave it running.
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.
Automate this
Answers how to connect to the site or environment, its users with their keys, the company keys that reach it, and ready ssh, sftp, rsync and database tunnel commands for the built-in web user.
curl https://manage.corefinity.com/api/corestack/sites/1042/access \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json"Your assistant calls corestack_ssh_access_get.
{
"name": "corestack_ssh_access_get",
"arguments": {
"site_id": 4211
}
}