

Starting with Windows Server 2019 (or 1809), there are two ways to describe SSH public keys. Then choose your preferred method of managing SSH public keys. (Or you can use another text editor of your choice.) notepad.exe $env:PROGRAMDATA\ssh\sshd_configįor the following items, uncomment below lines and apply the value as follows: To enable this authentication feature, start PowerShell as an administrator and open the file in the path below with notepad. Using public SSH Key authentication methods and disable the password authentication method highly recommended because it prevents attacks through password assignment. $SSHDaemonSvc = Get-Service -Name ‘sshd’ Start-Service -Name $SSHDaemonSvc.Name Stop-Service -Name $SSHDaemonSvc.Name Apply asymmetric key authentication $OpenSSHServer = Get-WindowsCapability -Online | ? Name -like ‘OpenSSH.Server*’ Add-WindowsCapability -Online -Name $OpenSSHServer.NameĪfter installing the OpenSSH server program, start and stop the NT service once to create the necessary initial configuration files. You can install OpenSSH Server the same way you installed the SSH client in the previous article. Installing and configuring OpenSSH Server We will also look at how you can use Remote Desktop securely without modifying your firewall settings using SSH port tunneling.

This method allows Windows Server to connect remotely using SSH, just like a traditional Linux server.
Config openssh how to#
C ontinuing from the last post, we’ll look at how to set up a built-in SSH server starting with Windows 10 and Windows Server 1709.
