Your SSH keys
Add a personal SSH key to your profile, rename it or remove it.
On this page
Before you start
- You have a public key: see SSH keys.
- For a key that logs in as the shared username
web, see Organisation SSH keys. - A personal key logs in as your own username, on every environment you can reach, never as
web.
Add a personal key
Open SSH keys
Open the menu under your name, choose Profile, then SSH keys. My SSH username shows your username.
Choose Add personal key
Under My keys, choose Add personal key.
Paste the public key
Paste the contents of your
.pubfile into Public key. Enter a Name that says where the key lives, such asMacBook, and choose Add key.
The key is listed under My keys. Where it works shows how many environments have it.
See where you can log in
Where I can log in, below your keys, lists every environment you can reach, by site. Copy ~/.ssh/config copies a ready-made entry for each one, and Show the config shows it first.
To connect, your IP address must also be allowed: see My IP addresses.
Rename or remove a key
Open the key's menu
Under My keys, open the key's … menu. Choose Rename… to change its name, or Remove…, then type the key's name and choose Remove key.
A removed key stops working on every environment.
Automate this
Adds a public key at one level: a company or a website (for all or for selected environments), one environment, or yourself.
curl -X POST https://manage.corefinity.com/api/ssh/keys \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"applies_to": {
"environment_ids": [
1311
],
"mode": "selected"
},
"name": "Build server",
"owner": {
"id": 1204,
"type": "company"
},
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAAAExampleKeyOnlyDoNotUseThisIsNotARealKey2"
}'Your assistant calls corestack_ssh_key_add.
{
"name": "corestack_ssh_key_add",
"arguments": {
"owner": {
"type": "company",
"id": 4211
},
"public_key": "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl ci@example",
"name": "Bitbucket Pipelines"
}
}