CARVIEW |
Select Language
HTTP/2 301
date: Wed, 30 Jul 2025 00:12:57 GMT
content-type: text/html
location: /reference/doctl/reference/compute/ssh-key/create/
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 66b87bdb-ceab-4f7c-975f-da2affb6d13a
cache-control: private
x-do-orig-status: 301
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=mkxrDZi_sdYIuW1zZSNIK3ivNR7hM.wssMmBM4MwWhQ-1753834377-1.0.1.1-rgPtmb_5w234__TuUZCKygLGcI.o1LtWBRdfLxElFXLAjtmyZbYRd4jXo.uJJbFWErH4Vd_C7KYPp.0VaB8zzriu0Z1SJpitTZg01hSYdZg; path=/; expires=Wed, 30-Jul-25 00:42:57 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
vary: Accept-Encoding
set-cookie: __cf_bm=P51tDRWmKM.HCd9jLGzkcy5u3HsvZ9t4dSO76lHd0O4-1753834377-1.0.1.1-EaXSWIApZqvDoaeur7C4bBEMQQ45MVz7qi_yVgpnWd85DwKfwsHd8Fpvx2lu9KRyIrLxbqjpx.9Hcw0FrT2nPFpxwhS8XpRwZhpt7AHggbD70Vbp1p17JtuqUvId2Msv; path=/; expires=Wed, 30-Jul-25 00:42:57 GMT; domain=.digitalocean.com; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 9670a5b80eb06f7a-BLR
HTTP/2 200
date: Wed, 30 Jul 2025 00:12:58 GMT
content-type: text/html
last-modified: Tue, 29 Jul 2025 12:11:14 GMT
vary: Accept-Encoding
x-frame-options: ALLOW-FROM https://marina.digitalocean.com/
x-xss-protection: 1; mode=block
content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-content-security-policy: frame-ancestors https://amd.digitalocean.com/ https://amd.s2r1.internal.digitalocean.com/ https://localdev.internal.digitalocean.com https://cloud.s2r1.internal.digitalocean.com https://cloud.digitalocean.com https://digitaloceaninc.lookbookhq.com
x-do-app-origin: 66b87bdb-ceab-4f7c-975f-da2affb6d13a
cache-control: private
x-do-orig-status: 200
cf-cache-status: DYNAMIC
set-cookie: __cf_bm=jqFmszfGzdQ.We0w87EtwL4m3x_tTYgCxxIH59JWymc-1753834377-1.0.1.1-pumm2SRq2nKfRZj77J0av6XWKAQKjto6L3G.FSK8yS91Mg2vP6qRWeg0mce0dKykcgq84wzfOasbiFGButOUaI73pKdJbLfkW8SNXWlyASg; path=/; expires=Wed, 30-Jul-25 00:42:57 GMT; domain=.ondigitalocean.app; HttpOnly; Secure; SameSite=None
server: cloudflare
cf-ray: 9670a5bd2c516f7a-BLR
content-encoding: gzip
doctl compute ssh-key create | DigitalOcean Documentation
doctl compute ssh-key create
Generated on 23 Jun 2025
from doctl
version
v1.131.0
Usage
doctl compute ssh-key create <key-name> [flags]
Aliases
c
Description
Use this command to add a new SSH key to your account.
Specify a <key-name>
for the key, and set the --public-key
flag to a string with the contents of the key.
Note that creating a key will not add it to any Droplets.
Flags
Option | Description |
---|---|
--format |
Columns for output in a comma-separated list. Possible values: ID , Name , FingerPrint . |
--help , -h |
Help for this command |
--no-header |
Return raw data with no headers Default: false |
--public-key |
Key contents (required) |
Related Commands
Command | Description |
---|---|
doctl compute ssh-key | Display commands to manage SSH keys on your account |
Global Flags
Option | Description |
---|---|
--access-token , -t |
API V2 access token |
--api-url , -u |
Override default API endpoint |
--config , -c |
Specify a custom config file Default: |
--context |
Specify a custom authentication context name |
--http-retry-max |
Set maximum number of retries for requests that fail with a 429 or 500-level error
Default: 5 |
--http-retry-wait-max |
Set the minimum number of seconds to wait before retrying a failed request
Default: 30 |
--http-retry-wait-min |
Set the maximum number of seconds to wait before retrying a failed request
Default: 1 |
--interactive |
Enable interactive behavior. Defaults to true if the terminal supports it (default false)
Default: false |
--output , -o |
Desired output format [text|json] Default: text |
--trace |
Show a log of network activity while performing a command Default: false |
--verbose , -v |
Enable verbose output Default: false |
We can't find any results for your search.
Try using different keywords or simplifying your search terms.