Console
Discord
Guides
Instances
Serverless
API
Navigate through spaces
⌘
K
Vast.ai API
Introduction
Accounts
Autoscaler
Billing
Instances
Machines
Search
Team
Templates
CLI
CLI Commands
Overview & Quickstart
API Endpoints and Permission Categories
Python SDK Usage
Docs powered by
Archbee
Vast.ai API
Instances
Attach SSH Key to Instance
1min
Code examples
Curl
1
curl
--location
--globoff
'https://console.vast.ai/api/v0/instances/{id}/ssh/'
\
2
--header
'Accept: application/json'
\
3
--header
'Content-Type: application/json'
\
4
--data
'{}'
curl --location --globoff 'https://console.vast.ai/api/v0/instances/{id}/ssh/' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{}'
Updated 08 Jan 2025
Did this page help you?
PREVIOUS
Show Deposit Details for an Instance
NEXT
Cancel a remote copy in progress
Docs powered by
Archbee
TABLE OF CONTENTS
Code examples
Docs powered by
Archbee