> For the complete documentation index, see [llms.txt](https://docs.cloud.olakrutrim.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud.olakrutrim.com/basics/key-management-system/ssh-access-for-vms.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
