Differences
This shows you the differences between the selected revisions of the page.
2018-01-12 | 2018-01-12 | ||
create process-specific rather than port-specific firewall rules (martin) | updating syntax of FixHostFilePermissions execution command to make -confirm switch work again (martin) | ||
Line 8: | Line 8: | ||
* Extract the package to ''C:\Program Files\OpenSSH'' | * Extract the package to ''C:\Program Files\OpenSSH'' | ||
* As the Administrator, install SSHD and ssh-agent services: \\ ''powershell.exe -ExecutionPolicy Bypass -File install-sshd.ps1'' | * As the Administrator, install SSHD and ssh-agent services: \\ ''powershell.exe -ExecutionPolicy Bypass -File install-sshd.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'' | + | * 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 -Command ". .\FixHostFilePermissions.ps1 -Confirm:$false%%"'' |
* 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 -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Service sshd -Enabled True -Direction Inbound -Protocol TCP -Action Allow%%'' | * 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%%'' |