# SSH Keys

Using SSH keys is the recommended and most secure method for accessing your Virtual Machines (VMs). SSH keys provide a more secure alternative to password-based authentication, helping to protect your infrastructure from unauthorized access.

To import a new SSH key:

1. Navigate to the **SSH Keys** page located under **Networks and Security** in the navigation bar.
2. Click **Import SSH Key** in the top right corner.
3. Paste your public SSH key and provide a recognizable name. Your public SSH key can be found at `~/.ssh/id_rsa.pub`
4. Save your changes.

Once added, you can assign this key to a VM during VM creation to securely connect to the VM.

Admins may manage SSH keys for other users by clicking the **Manage Other Users** button in the top right corner.


---

# 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.platform9.com/private-cloud-director/virtualized-networking/ssh-keys.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.
