Differences

This shows you the differences between the selected revisions of the page.

2022-10-23 2022-10-24
Update firewall/service configuration instructions for Win10/Win11. (FeRDNYC) @FeRDNYC Thanks for your edit. Though I'm partially reverting it. Even on Windows 11, searching "System and Security" still opens Control Panel. So I believe that's still the primary path to that applet (and mainly, it's the path that works on any version of Windows) (martin)
Line 29: Line 29:
    * When installed as an optional feature, the firewall rule //"OpenSSH SSH Server (sshd)"// should have been created automatically. If not, proceed to create and enable the rule as follows.     * When installed as an optional feature, the firewall rule //"OpenSSH SSH Server (sshd)"// should have been created automatically. If not, proceed to create and enable the rule as follows.
    * Either run the following PowerShell command as the Administrator: \\ <code powershell>New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program "C:\Windows\System32\OpenSSH\sshd.exe"</code> Replace ''C:\Windows\System32\OpenSSH\sshd.exe'' with the actual path to the ''sshd.exe'' (''C:\Program Files\OpenSSH\ssh.exe'', had you followed the manual installation instructions above).     * Either run the following PowerShell command as the Administrator: \\ <code powershell>New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH SSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 -Program "C:\Windows\System32\OpenSSH\sshd.exe"</code> Replace ''C:\Windows\System32\OpenSSH\sshd.exe'' with the actual path to the ''sshd.exe'' (''C:\Program Files\OpenSSH\ssh.exe'', had you followed the manual installation instructions above).
-    * or go to //Windows Security > Firewall & network protection//((//Windows Firewall// or //Windows Defender Firewall// in the //Control Panel//, on older versions of Windows.))// > Advanced Settings > Inbound Rules// and add a new rule for port 22. &wincp+    * or go to //Windows Security > Firewall & network protection//((//Control Panel &gt; Windows Defender Firewall// (or //Windows Firewall//) on older versions of Windows.))// > Advanced Settings > Inbound Rules// and add a new rule for port 22. &wincp
  * Start the service and/or configure automatic start:   * Start the service and/or configure automatic start:
-    * Launch //Windows Administrative Tools > Computer Management// and open //Services and Applications > Services//. Locate //%%OpenSSH SSH Server%%// service. &wincp +    * Go to //Control Panel > System and Security > Administrative Tools// and open //Services//. Locate //%%OpenSSH SSH Server%%// service. &wincp 
-    * If you want the server to start automatically when your machine is started:  +    * If you want the server to start automatically when your machine is started: Go to //Action > Properties// (or just double-click the service). In the Properties dialog, change //Startup type// to //Automatic// and confirm. 
-       * Double-click the //%%OpenSSH SSH Server%%// service, or select it and choose //Action > Properties// from the menu. +    * Start the //%%OpenSSH SSH Server%%// service by clicking the //Start the service// link or //Action > Start// in the menu.
- ·······* In the Properties dialog, change //Startup type// to //Automatic// and confirm. +
-    * Start the //%%OpenSSH SSH Server%%// service by choosing //Action > Start// from the menu, or clicking the //Start// button in the Properties dialog.+
//These instructions are partially based on [[https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH|the official deployment instructions]].// //These instructions are partially based on [[https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH|the official deployment instructions]].//

Last modified: by martin