Table of Contents
This tip is about the how to configure installation of OpenSSH server on Windows using PowerShell. So read this free guide, How to configure installation of OpenSSH server on Windows using PowerShell step by step. If you have query related to same article you may contact us.
How to configure installation of OpenSSH server on Windows using PowerShell – Guide
The Secure Shell (SSH) protocol and the OpenSSH project have been on the market for decades on Linux. But OpenSSH on Windows wasn’t accepted in the Windows world until not too long ago. As such, a Windows Server doesn’t usually come pre-built and ready to run and needs some configuration.
Here are all the details about how to SSH on your Windows Server as simple as Linux. You may how to get OpenSSH installed (or updated) on Windows, add proper firewall rules and set up public key, password, and certificate-based authentication.
Installation
Step 1.
We start by opening up PowerShell as an admin user. To get started, click on the “Start” button button and click on “All apps”. Expand the Powershell folder, right-click on “Powershell” and select “Run as administrator. ”Depending on your machine settings, you may get a“ UAC ” or User Access Control prompt asking for permission. Go ahead and approve access.
Step 2.
Next, we need to enter commands to install the OpenSSH client. The client is the software used to connect to the OpenSSH server. We will be connecting from our location laptop or workstation, so we start by opening Powershell, as noted earlier in this tutorial. At the Powershell prompt, type the following and press Enter.
# Install OpenSSH ClientAdd-WindowsCapability -Online -Name OpenSSH.Client ~~~~ 0.0.1.0
You will see a progress bar indicating the progress of the installation. When the installation is complete, you will receive the following output.
Path: Online: TrueRestartNeeded: False
Step 3.
Next, we will install the OpenSSH server. The server is the computer running the sshd service, and we will connect to it. At the Powershell prompt, type the following command and press Enter.
# Install OpenSSH ServerAdd-WindowsCapability -Online -Name OpenSSH.Server ~~~~ 0.0.1.0
Again, you should see a progress bar indicating the progress of the installation. When the installation is complete, you should receive the following output.
Path: Online: TrueRestartNeeded: False
Final note
I hope you like the guide How to configure installation of OpenSSH server on Windows using PowerShell. In case if you have any query regards this article you may ask us. Also, please share your love by sharing this article with your friends.