Differences

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

2018-01-09 2018-01-12
footnote cannot be within another style (martin) create process-specific rather than port-specific firewall rules (martin)
Line 10: Line 10:
  * As the Administrator, generate server keys and restrict an access to them, by running the following commands from the ''C:\Program Files\OpenSSH'' directory: \\ ''.\ssh-keygen.exe -A'' \\ ''powershell.exe -ExecutionPolicy Bypass -File .\FixHostFilePermissions.ps1''   * As the Administrator, generate server keys and restrict an access to them, by running the following commands from the ''C:\Program Files\OpenSSH'' directory: \\ ''.\ssh-keygen.exe -A'' \\ ''powershell.exe -ExecutionPolicy Bypass -File .\FixHostFilePermissions.ps1''
  * Open a port for the %%SSH%% server in Windows Firewall:   * Open a port for the %%SSH%% server in Windows Firewall:
-    * Either run the following PowerShell command (Windows 8 and 2012 or newer only), &win8 &win2012 as the Administrator: \\ ''New-NetFirewallRule -Protocol %%TCP%% -LocalPort 22 -Direction Inbound -Action Allow -DisplayName %%SSH%%'' +    * Either run the following PowerShell command (Windows 8 and 2012 or newer only), &win8 &win2012 as the Administrator: \\ ''%%New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Service sshd -Enabled True -Direction Inbound -Protocol TCP -Action Allow%%'' 
-    * or go to //Control Panel > System and Security > Windows Defender Firewall//((Just //Windows Firewall// on Windows 7.))// > Advanced Settings > Inbound Rules// and add a new rule for port 22. &wincp+    * or go to //Control Panel > System and Security > Windows Defender Firewall//((Just //Windows Firewall// on Windows 7.))// > Advanced Settings > Inbound Rules// and add a new rule for ''sshd'' service (or 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 //SSHD// service. &wincp     * Go to //Control Panel > System and Security > Administrative Tools// and open //Services//. Locate //SSHD// service. &wincp

Last modified: by martin