Windows 10 and 11 include ssh, sftp and scp. If ssh is not found, open Settings > System > Optional features and add OpenSSH Client.
Before you begin
Your key is on your site (see Add or remove an SSH key).
Steps
- Right-click the Start button and open Terminal, Windows PowerShell or Command Prompt.
- Paste the Connect line from the SSH & SFTP tab, for example
ssh -p 7822 [email protected], and press Enter. - The first time, compare the fingerprint with the one on the tab and type
yes. - Type your key's passphrase if you set one.
- Type
exitto leave.
Result
You are signed in over SSH from Windows.
What to do next
Copy files: scp -P 7822 site.zip [email protected]:httpdocs/, or sftp -P 7822 [email protected].
Type the passphrase once per session: in PowerShell as administrator run Get-Service ssh-agent | Set-Service -StartupType Automatic and Start-Service ssh-agent, then ssh-add as yourself.
The ~/.ssh/config file described in Connect with the macOS Terminal works on Windows too: it is %USERPROFILE%\.ssh\config.
Related articles
- SSH and SFTP on 7x servers What SSH and SFTP are, why the 7x servers only accept SSH keys, and the details you need to connect.
- Create an SSH key on macOS, Linux or Windows Make an Ed25519 key with the ssh-keygen command that comes with macOS, Linux and Windows 10 and 11.
- SSH or SFTP does not connect What "Permission denied (publickey)", a timeout or a changed fingerprint mean, and how to fix them.