Differences

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

2022-06-21 2022-10-23
missing settings step (martin) Update firewall/service configuration instructions for Win10/Win11. (FeRDNYC)
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 //Control Panel > System and Security &gt; Windows Defender Firewall//((//Windows Firewall// on older versions of Windows.))// > Advanced Settings > Inbound Rules// and add a new rule for port 22. &wincp+    * or go to //Windows Security > Firewall &amp; 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
  * Start the service and/or configure automatic start:   * Start the service and/or configure automatic start:
-    * Go to //Control Panel > System and Security > Administrative Tools// and open //Services//. Locate //%%OpenSSH SSH Server%%// service. &wincp +    * Launch //Windows Administrative Tools > Computer Management// and open //Services and Applications > Services//. Locate //%%OpenSSH SSH Server%%// service. &wincp 
-    * If you want the server to start automatically when your machine is started: Go to //Action > Properties//. In the Properties dialog, change //Startup type// to //Automatic// and confirm. +    * If you want the server to start automatically when your machine is started:  
-    * Start the //%%OpenSSH SSH Server%%// service by clicking the //Start the service//.+       * Double-click the //%%OpenSSH SSH Server%%// service, or select it and choose //Action > Properties// from 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 FeRDNYC