Create a new SSH key.
Signature
VastAI.create_ssh_key(
ssh_key: Optional[str] = None
) -> dict
Parameters
add your existing ssh public key to your account (from the .pub file). If no public key is provided, a new key pair will be generated.
Returns
dict
Example
from vastai import VastAI
client = VastAI(api_key="YOUR_API_KEY")
result = client.create_ssh_key()
print(result)