Services/SSH/Windows
OpenSSH client on Windows
Installing the client
Via graphical interface (Windows 11)
- Open the Settings and search for optional features in the search bar, then select the corresponding item.
- At the top, under the section Add an optional feature, click the button View features.
- In the dialog, search for openssh-client (If OpenSSH-Client does not appear as a search result, it is already installed).
- Select OpenSSH-Client and click Next.
- Click Install and wait for the process to complete.
Via command line
- Right-click on the Start menu and then select Terminal (Administrator).
- Execute the following command in the command line:
Add-WindowsCapability -Online -Name OpenSSH.Client
ssh-agent
To avoid entering the passphrase for your private key every time, you can add your private keys to the Windows ssh-agent
. First, the corresponding Windows service must be started:
Via graphical interface (Windows 11)
- Right click the Start button and select Computer management.
- On left under Services and Applications select Services.
- Find the service the name OpenSSH Authentication Agent in the list.
- Right click the service and select Properties.
- On the General tab
- Set the option Startup type to Automatic.
- Click Apply.
- Under Service status click the Start button.
- Close the dialogue with OK.
Via command line
- Right click the start button and select Windows PowerShell (Admin).
- In the command line run the following commands:
- To set the service to start when Windows boots:
Get-Service ssh-agent | Set-Service -StartupType Automatic
- To start the service immediately:
Start-Service ssh-agent
- To check if the service is running:
Get-Service ssh-agent
- To set the service to start when Windows boots:
After that, private keys can be added using the command ssh-add
(no administrator rights are required).