You can connect from Windows in three ways. Use OpenSSH if you can: it is already installed on Windows 10 and later and works like the commands in the other guides. All three need an SSH key added in the console. See Connect with SSH.
Option 1: OpenSSH in PowerShell
- Open PowerShell.
- Create a key if you do not have one:
ssh-keygen -t ed25519 -C "you@example.com"- Show the public key and copy the whole line:
Get-Content $env:USERPROFILE\.ssh\id_ed25519.pub- In the console go to SSH keys, select Add key and paste it. Choose the key when you deploy.
- Open the server, select Connect, copy the command and paste it into PowerShell:
ssh -i $env:USERPROFILE\.ssh\id_ed25519 root@HOST -p PORTIf Windows says the key file permissions are too open, only your own user may read the private key file. Right-click the file, choose Properties, then Security, and remove other users.
Option 2: PuTTY
PuTTY uses its own key format.
- Install PuTTY, which includes PuTTYgen.
- Open PuTTYgen. Choose Load and select your private key file, or create a key with type EdDSA (Ed25519) and select Generate.
- Copy the text in Public key for pasting into OpenSSH authorized_keys file and add it under SSH keys in the console.
- Select Save private key to make a
.ppkfile. Keep it private and never paste it anywhere. - Open PuTTY. Under Session enter the Host Name and Port from the Connect tab, with connection type SSH.
- Under Connection > SSH > Auth > Credentials choose your
.ppkfile. - Under Connection > Data set Auto-login username to
root. - Save the session and select Open. Accept the host key the first time.
Option 3: VS Code Remote
- Install Visual Studio Code and the Remote - SSH extension.
- Press
F1, run Remote-SSH: Open SSH Configuration File and chooseC:\Users\YOU\.ssh\config. - Add the entry from the Connect tab (the VS Code help there has a copy button), for example:
Host apidly-server
HostName HOST
Port PORT
User root
IdentityFile C:\Users\YOU\.ssh\id_ed25519- Press
F1, run Remote-SSH: Connect to Host and chooseapidly-server. - Open a folder such as
/workspace. VS Code installs its helper on the server the first time, which needs a moment.
The host and port can change after a stop and start. Update the entry when they do.
Copy files
PowerShell includes scp:
scp -P PORT .\file.txt root@HOST:/workspace/rsync is not included in Windows. Use scp, or use rsync inside Windows Subsystem for Linux. See Moving files.
If it does not work
- Permission denied: the key you added is not the one being used. Add
-iwith the right path. - Connection timed out: the server may be stopped or still starting, or the port changed. Copy the command again.
- Host key changed warning: a new server reused the address. Remove the old line from
C:\Users\YOU\.ssh\known_hostsor runssh-keygen -R "[HOST]:PORT".
More in Server problems.
Ready to try it?
Create a free account and add credit when you want to start a server. The smallest top-up is $10.
Was this helpful?