Dienste/SSH/Windows/en: Unterschied zwischen den Versionen
Manal (Diskussion | Beiträge) Die Seite wurde neu angelegt: „# 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: <code>Get-Service ssh-agent | Set-Service -StartupType Automatic</code> ## To start the service immediately: <code>Start-Service ssh-agent</code> ## To check if the service is running: <code>Get-Service ssh-agent</code>“ |
Übernehme Bearbeitung einer neuen Version der Quellseite |
||
| Zeile 29: | Zeile 29: | ||
<span id="Via_grafische_Oberfläche_(Windows_11)"></span> | <span id="Via_grafische_Oberfläche_(Windows_11)"></span> | ||
=== Via graphical interface (Windows 11) === | === Via graphical interface (Windows 11) === | ||
[[File:Windows11_enable_ssh-agent_en.webm|300px|thumb|Windows 11 - Enable ssh-agent]] | |||
# Right click the Start button and select ''Computer management''. | # Right click the Start button and select ''Computer management''. | ||
| Zeile 36: | Zeile 38: | ||
# On the ''General'' tab | # On the ''General'' tab | ||
## Set the option ''Startup type'' to ''Automatic''. | ## Set the option ''Startup type'' to ''Automatic''. | ||
## Click ''Apply''. | |||
## Under ''Service status'' click the ''Start'' button. | ## Under ''Service status'' click the ''Start'' button. | ||
# Close the dialogue with ''OK''. | # Close the dialogue with ''OK''. | ||
Version vom 11. August 2025, 13:09 Uhr
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).