# SSH Access for VMs

SSH Keys are used to securely access your VMs

### Creating an SSH Key

1. Go to the SSH Key section under Key management service
2. Click on "Create Key"
3. Select the region in which you want the VM to be present
4. Enter a name for the key
5. Paste the public key. Learn how to create the key from [here](https://krutrim-cloud-documentation.gitbook.io/krutrim-cloud-documentation/~/revisions/JtujsKCePLeIgdxgLhGC/basics/core-infrastructure/compute/ssh-key).
6. Click on "Create key"
7. Your SSH Key will be created, and you can use it with your VMs

### Rotating keys

If your SSH key has been inactive (Not attached to any VMs) for more than 3 months, then it will expire. You will have to rotate the key

1. Go to the SSH Key section under Key management service
2. Click on the action button near your expired key
3. Paste the new public key. Learn how to create the key from [here](https://krutrim-cloud-documentation.gitbook.io/krutrim-cloud-documentation/~/revisions/JtujsKCePLeIgdxgLhGC/basics/core-infrastructure/compute/ssh-key).
4. Click on "Rotate key"
5. Your SSH Key will be rotated, and you can use it with your VMs


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloud.olakrutrim.com/basics/key-management-system/ssh-access-for-vms.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
