If you are from the world of Linux and because of one reason or another you currently find yourself in a situation where Windows 2019 servers are all over around you, there is uplifting news for you. We realize you are accustomed to utilizing SSH to sign in and direct your servers and here you are in an alternate situation inside and out. While there are Powershell alternatives for signing into remote Windows Servers, most administrators from a Linux foundation can think that its difficult to adapt.
Windows Server 2019 and the latest variant of Windows 10 accompany the capacity of introducing SSH customers and an SSH server. Presently it is conceivable to simply utilize your most loved ssh customer rather than RDP or Windows Subsystem for Linux. This is awesome news.
Let us not burn through additional time and continue to introduce the OpenSSH Server. Ensure your Windows Server has web access for the OpenSSH Server part.
Stage 1: Open Settings
Snap-on “Start” button and choose Settings. It should be the apparatus symbol.
Stage 2: Apps
After settings are started up, select “Applications” at that point click on “manage optional features”
Stage 3: Choose OpenSSH Server
You should see “OpenSSH Server” under “add a feature”. Snap-on it and afterward click on “install”
Stage 4: Start the Server and change start-up to Automatic
Open “Services” applications by tapping on the “Windows” catch and quest for “Services“. When it is open search for OpenSSH Server, right-click and choose properties. Another spring up window will open. In it, switch the beginning up to Automatic starting from the drop as appeared in the delineations beneath and afterward start the server.
Right-click OpenSSH Server and select properties
Change the beginning up to Automatic, “Start” the Server and snap “ok”
Stage 5: Allow port 22 in firewall
In the event that your firewall is on in your server, permit TCP Port 22 with the goal that customers can have the option to associate with the server. Follow How To open a port in Windows Server Firewall guide for that lone changing the port to 22.
Stage 6: Install SSH Client on Windows
Install using PowerShell
You can generally introduce the OpenSSH Server and customer by running the accompanying directions in Powershell. Open your Powershell with Administrator benefits and run the commands.
Commands to run in PowerShell
## Install OpenSSH.Server
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
## Install OpenSSH.Client
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
## Change server start-up to Automatic
Set-Service -Name sshd -StartupType ‘Automatic’
## Start the Server and change start-up to Automatic
Step 8: Testing OpenSSH Server
Use the SSH Client to connect to SSH Server as shown below. AS you can see, we are on a server with IP 10.10.20.2 and we are “sshing” to 10.10.20.21. Input “yes” and key in the password of the account.
We have effectively figured out how to introduce and Configure OpenSSH Server and Client. Thank you for reading through.