Skip to content
Knowledge Base

Install / Enable OpenSSH Client on Windows 11 Alternatively, use PowerShell (run as Administrator):

After installation, open PowerShell, Command Prompt, or Windows Terminal and type: Generate SSH Key Pair on Windows 11 Recommended modern key type: ed25519 (faster and more…

Updated 1 min readPowershell

text
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0

After installation, open PowerShell, Command Prompt, or Windows Terminal and type:

bash
ssh

Generate SSH Key Pair on Windows 11

text
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

After generation, you will have two files:

id_ed25519 → Private key (keep secret!)
id_ed25519.pub → Public key (this one you copy to the server)

Copy Public Key to Linux Server (Passwordless Setup)

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

Option B: Manual copy

First connect with password:PowerShell

bash
ssh user@server_ip

On the Linux server, create the directory and file:Bash

bash
mkdir -p ~/.ssh
chmod 700 ~/.ssh

Copy the content of your public key (on Windows):PowerShell

text
type $env:USERPROFILE\.ssh\id_ed25519.pub

Paste it into the Linux server's ~/.ssh/authorized_keys file and set permissions:Bash

bash
chmod 600 ~/.ssh/authorized_keys
powershell/install-openssh-client.md