This guide explains how SSH keys work, how to generate a key pair on Windows, macOS, or Linux, and how to add your public key to your myDelska profile so you can connect to your virtual machines securely.
What is SSH and how can it benefit you?
Secure Shell (SSH) is a protocol that establishes a secure connection between your local computer and a remote system. This connection allows you to manage the VM remotely without compromising security.
Access is achieved by using a key. Your private key must remain on your host, and a public key file (.pub) that is not secret must be copied to the remote system to enable your private key to be used for access.
SSH key types
An SSH connection uses two types of keys:
Private Key: stored on your local computer and never shared. Anyone who gains access to your private key can access your remote systems without your permission, so protect it carefully.
Public Key: A non-sensitive file (.pub file extension) that you share with remote systems. It pairs with your private key to authenticate connections. Upload and save it to your myDelska Cloud Platform profile for easy copying and use when deploying a new Virtual Machine.
Why do I need an SSH Key?
An SSH key provides stronger protection than a password. When you share your public key with the VM, only your private key can verify access to the system, significantly reducing the risk of unauthorized entry.
How to create an SSH key
You can use any tool you are familiar with to create SSH keys and connect to a VM remotely. The sections below cover the most common options for each operating system.
SSH keys on Windows, macOS, and Linux
Starting from Windows 10, a built-in OpenSSH client is available, allowing users to generate and manage SSH keys without additional software. If you use an older version of Windows or prefer an alternative tool, you can use PuTTY. Below, we provide instructions for both methods, as well as guidance for macOS and Linux users.
Troubleshooting SSH connections
“Permission denied (publickey)” — wrong username, wrong private key, or the key file permissions are too open (chmod 600 ~/.ssh/id_rsa on Linux/macOS).
“Connection refused” or “Connection timed out” — the VM is stopped, the SSH service is down, or a firewall rule doesn’t allow TCP port 22 from your IP.