Open SSH
Install and Configure Open SSH Service on Windows Server
Last updated
Install and Configure Open SSH Service on Windows Server
Last updated
In this scenario, we will learn the steps on how to install and configure the Open SSH Server on Windows Server .
For this guide, we will use the test lab created in VMWare Workstation.
WinServer: Domain Controller with DNS. (192.168.10.1/24)
Client: Windows 10 client machine.
1. Logon to Windows Server with an administrator account.
2. To install OpenSSH on Windows Server using PowerShell, first launch PowerShell as an Administrator.
3. First, let’s verify that the OpenSSH package is available or not on the server before directly installing it.
4. To install OpenSSH package run below cmdlet in Windows PowerShell.
Verify the OpenSSH Server package is successfully installed on Windows Server.
Once the installation succeeds, the next step is the initial configuration of the SSH server. SSH services need to be configured for automatic start and started up.
5. First, check the status of sshd and ssh-agent service. To check that, we need to run below cmdlet at Windows PowerShell (admin).
6. We can see that both services are in a Stopped status. Before starting the OpenSSH services, we need to change the startup mode. We need to run below cmdlet at Windows PowerShell (admin).
7. Now, let’s start both services. We need to run below cmdlet at Windows PowerShell (admin).
8. Let’s again check the status of SSH services.
Now, we can verify SSH services are up and running.
Starting from Windows 10, Windows 10 also comes with its SSH client, which is already installed in Windows 10 system.
9. On a Windows 10 machine, open a command prompt (or Windows PowerShell) and type: below command to connect to the ssh server.
10. Type yes at the warning message and press Enter key.
11. Type administrator accounts password and press enter key.
Now we can run any command we want as if we were sitting in front of our server.
Lets run command “netstat -n” to check the established connection from Windows 10 client machine.
Here, we can see SSH session from Windows 10 client machine to our SSH Server on TCP port number 22.