Skiff

Guide

Connecting to a server over SSH from Windows

Since Windows 10 1809, an OpenSSH client ships with the system, and it is enough to run a few commands on one box. The moment you manage several hosts, move files regularly, or get tired of retyping passwords, a GUI client pays for itself. Both paths are below.

1. Using the OpenSSH client that ships with Windows

Check whether it is installed

Open PowerShell and run:

ssh -V

You should see something like OpenSSH_for_Windows_8.6p1. If PowerShell says the term ssh is not recognized, install it: Settings → Apps → Optional features → Add a feature → search for "OpenSSH Client" → Install. Windows 11 usually has it already.

Connect

ssh root@192.168.1.10
ssh -p 2222 root@192.168.1.10

The first line uses the default port 22; the second sets 2222. User and host are separated by @, and the port flag is -p — lowercase. -P belongs to scp, and mixing them up is a common way to waste ten minutes.

The fingerprint prompt on first connect

The authenticity of host '192.168.1.10' can't be established.
ED25519 key fingerprint is SHA256:AbCdEf...
Are you sure you want to continue connecting (yes/no/[fingerprint])?

This is not an error. SSH is asking you to confirm the identity of the machine, and on a first meeting there is nothing to compare against. Sensible ways to answer:

Accepted hosts are written to C:\Users\yourname\.ssh\known_hosts. If one day you get WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED, the key on the other side really did change: either the server was rebuilt, or something sits in the middle. Find out which before deleting the line from known_hosts — do not clear the warning reflexively.

A few daily actions

2. When to move to a GUI client

The command line connects fine, but these tasks get painful:

A GUI client turns those into interface: a session list, tabs, dual-pane transfer, saved credentials. Skiff's installer is 5 MB, installs per user without a UAC prompt, and is usable immediately. Passwords are encrypted with the Windows DPAPI rather than stored as plain text.

Download Skiff →

3. Setting up key-based login

Password login has two problems: public-facing machines get constant password guessing on port 22, and typing a password every time is tedious. Keys solve both after a one-time setup.

Generate a key pair

ssh-keygen -t ed25519 -C "work-laptop"

Press Enter through the prompts; the default location is C:\Users\yourname\.ssh\. You get two files:

The passphrase it asks for protects the private key and can be left empty. Empty is convenient, but anyone who copies that file can log in as you. With a passphrase, you type it once per use.

Put the public key on the server

Windows has no ssh-copy-id — that is a Linux and macOS tool. Two ways to do it.

First, one line in PowerShell:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@192.168.1.10 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"

Second, paste it by hand:

# on your machine, copy the single line this prints
type $env:USERPROFILE\.ssh\id_ed25519.pub

# after logging into the server
mkdir -p ~/.ssh
chmod 700 ~/.ssh
vi ~/.ssh/authorized_keys     # paste the line, save and exit
chmod 600 ~/.ssh/authorized_keys
Wrong permissions are the most common trap. When ~/.ssh or authorized_keys is too permissive, sshd ignores the key and logs only Permission denied (publickey), with no explanation. Directory 700, file 600, and the owner must be the account you log in as.

Write a config file and stop typing the long form

Create C:\Users\yourname\.ssh\config (no extension):

Host web
    HostName 192.168.1.10
    User root
    Port 2222
    IdentityFile ~/.ssh/id_ed25519

From then on ssh web is enough. Note that IdentityFile on Windows wants forward slashes or doubled backslashes; a single backslash is read as an escape character and you get a confusing file-not-found error.

4. When it will not connect

Common SSH errors and what to check
SymptomCheck first
Permission denied (publickey)Whether the whole key line was pasted, permissions 700/600, and PubkeyAuthentication yes in /etc/ssh/sshd_config
Connection refusedThe port is closed or sshd is not running. Try systemctl status sshd
Connection timed outA security group or firewall is dropping the port. Nothing to do with the password
Garbled or boxed charactersThe server locale is not UTF-8, or the client is not sending UTF-8
Connects, then drops after a whileNAT in between is reaping idle connections. Add ServerAliveInterval 30 on the client

Summary

One machine and the occasional command: the built-in ssh is all you need, install nothing. Several machines, files to move, passwords to keep: use a GUI client. What you save is the daily cost of retyping commands and hunting for the right window.

Read next

Download Skiff (free) Back to home