Search for “ SSH“, select the “ OpenSSH Client” checkbox, and click the “ Install” button:ġ. Search for “ optional features” on the Start Menu and select “ Manage optional features“:ģ. To use the ssh command natively in Windows Terminal, PowerShell, and Command Prompt (CMD) it is necessary to install the Windows OpenSSH Client via the Optional Features menu, and then add the OpenSSH folder to the Path environment variable. This guide covers how to enable the OpenSSH Client on Windows 10. Luckily Windows has added a native OpenSSH Client to Windows 10 as an Optional Feature. While useful, these options may be overkill for the simple need to use the ssh command. If you have any questions or suggestions, leave your comment.To use SSH from Windows typically requires installing programs that come with an implementation of SSH, such as: Git for Windows, Cygwin, etc. If you’d like some more reference about installing OpenSSH in Windows Server 2019, please take a look at this Microsoft’s TechCommunity blog post: Īs always, if you found this article useful, share it with your friends. So, from the server, I’ll type: ssh address of my Linux box]Īnd that’s it! We have installed the OpenSSH server and the OpenSSH client on Windows Server 2019! To test the OpenSSH I am going to connect to one of my Linux computers, which is a Raspberry Pi I have lying around :). If you now type “ ssh“, you’ll see that the OpenSSH client has been properly installed. Install OpenSSH Client Windows Server 2019īack on the Windows Server 2019 computer, at the powershell prompt type: Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Now that we’ve confirmed that the OpenSSH server is working properly, let’s install the OpenSSH client! Type your password and you’re in! You can run any command you want as if you were sitting in front of your server box! Type “ yes” at the warning message and press “ Enter” On a Windows 10 machine, or Linux for that matter, open a command prompt (or terminal) and type: ssh is the name of my Windows Server 2019 box) From here I am going to try to connect to the SSH server I’ve just installed in my Windows 2019 server. Type: Start-Service sshd Start-Service ssh-agentĪs stated previously, starting with Windows 10 1803, Windows 10 also comes with its own SSH client, which I already installed in my Windows 10 laptop. For that type: Set-Service -Name sshd -StartupType Automatic Set-Service -Name ssh-agent -StartupType Automatic Before starting the OpenSSH services, we need to enable them and set them to start at boot up. You will see that both services are in a “Stopped” status. To verify that the OpenSSH server is properly installed type: Get-Service sshd Get-Service ssh-agent
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Type the following in the Powershell window. Let’s start by installing the OpenSSH Server. You’ll see that we have available an Open SSH Server and an Open SSH Client.
To get the name of the “package” to install, open a Powershell window as administrator and type: Get-WindowsCapability -Online -Name Open* Unfortunately, or no, it looks like we’ll have to get our hands “dirty”! It is not possible to add this feature via Server Manager (correct me if I’m wrong!) and we will have to add it via Powershell! Install OpenSSH Server Windows Server 2019 What are you waiting for?īesides OpenSSH, Windows Server 2019 brought us a lot other new features, which you can check out here: Other than Windows Server 2019, it is also possible to enable SSH on Windows 10 starting with Windows 10 April 2018 Update (1803). SSH can be natively enabled on Windows Server 2019, both the SSH server and client! Although it does seem “illogical” to have SSH installed on a Windows Server machine, the truth is that, nowadays, our work environments are becoming more heterogeneous with each passing day, where Linux machines live side-by-side with Windows Server machines, making the possibility of having SSH on our Windows machines a great and welcoming addition! So, do you want native SSH in Windows Server? With Windows Server 2019, that is now possible!