Windows 10 and 11 include an OpenSSH client, so you can connect to a Linux server from PowerShell or Windows Terminal with nothing to install. PuTTY works too if you already use it. To reach a Windows server, use Remote Desktop instead: see Connect to a Windows server with Remote Desktop.
Connect from PowerShell
- In the console, open the server. On the Overview tab, copy the command from the Connect card, for example
ssh root@203.0.113.24. - No key on the server? Open Access, type your CloudSat password in Your account password, click Reveal server password and copy it.
- Open Windows Terminal or PowerShell, paste the command and press Enter.
- Type
yesto trust the host key on the first connection. - Paste the password with a right-click or Ctrl+V. Nothing shows while you type.
If PowerShell says ssh is not recognized, check for the client, then add it. The second command needs PowerShell run as administrator:
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH.Client*'
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Create and use a key
Generate a key pair. Press Enter to accept the default location, then set a passphrase:
ssh-keygen -t ed25519
Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub
The second command prints your public key: one line that starts with ssh-ed25519. Add it on the SSH keys page with Add SSH key, then tick it in step 4 of the deploy form for new servers (Add and use SSH keys).
Windows has no ssh-copy-id. To put the key on a server that is already running, pipe it over SSH. You type the server password one last time:
Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@203.0.113.24 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
On the next connection, ssh finds id_ed25519 in your .ssh folder by itself and skips the password.
Connect with PuTTY
- On the "Session" screen, type the IP address in "Host Name (or IP address)". Keep port 22 and the SSH connection type.
- Under "Connection" > "Data", set "Auto-login username" to
root. - For a key: PuTTY reads
.ppkfiles. Open PuTTYgen, choose "Conversions" > "Import key", load your private key (theid_ed25519file without.pub) and click "Save private key". In PuTTY, select that file under "Connection" > "SSH" > "Auth" > "Credentials". - Back on "Session", save the session under a name, then click "Open".
If PuTTYgen made your key, paste the text from the box at the top of its window (the public key in OpenSSH authorized_keys format) into the console. The other PuTTY export format is refused.
Troubleshooting
- Connection timed out. The server must read Running, and the firewall on its Networking tab must allow TCP port 22.
- Remote host identification has changed. Expected after a rebuild. Run
ssh-keygen -R 203.0.113.24in PowerShell and connect again. - "This does not look like an OpenSSH public key." You pasted a PuTTY-format key or a private key into the console. Paste the single line that starts with
ssh-ed25519. - Permission denied. Copy the password again from Access, or reset it (Find or reset the root password).
More fixes are in Connect to a Linux server over SSH.