How to set up SSH to natively connect to your server from Windows 10Since the OpenSSH client in Windows 10 is still in the beta stage, the client is not installed by default in Windows 10. But not to worry! The process is simple and only requires a few clicks and a restart of your computer to begin using SSH right from the command prompt or Powershell. Let’s take a look at how to install OpenSSH on your Windows workstation.
Because the OpenSSH client was introduced in the Windows 10 Fall Creators Update, you’ll need to first update to at least that version of the operating system. You can update using Windows Updates or by following the link above. Once updated, you’ll be on Windows 10 version 1709. To see which version of Windows you are running, click on the start menu, then select Settings -> System -> About.
Enable Windows 10 Developers ModeBecause this feature is only available in Developers Mode, you’ll need to first make sure you’ve enabled that option. Don’t worry, it should only take a few minutes to download the 6 MB file necessary to enter Developers Mode.
- Click the windows start menu and type Developers Settings in the search bar on the lower left hand side of the screen.
- You should see an option called For developers settings in the results. To open you can hit the Enter key, or mouse click the option.
- With the windows settings opened to the For Developers menu you can change the mode. By default, under Use developer features, you should see Windows Store Apps selected. However, we want to select Developer Mode.
Install the OpenSSH ClientNow that we have Windows 10 in developer mode the SSH client can be installed on Windows.
- Click the windows start menu and type start typing Apps in the search bar on the lower left hand side of the screen.
- You should see an option called Apps & Features in the results. To open you can hit the Enter key, or mouse click the option.
- Find and click Manage Optional Features.
- Next, click Add a feature. You should be presented with a list of features. Scrolling to the bottom, you should find Open SSH Client(Beta).
Note:There is also an OpenSSH Server option, but this will allow others to connect to your computer using SSH, which may be a security issue..
- Click OpenSSH Client to expand it and then select Install. Once installed, it will disappear from the list.
Using OpenSSH in Windows 10To use OpenSSH, after you’ve completed the above steps, just open Powershell or the command prompt and enter the command SSH to see the list of current arguments it accepts. OpenSSH in Windows works just like it does in other operating systems. For example, to connect to a server example.com with username Dave, I would enter the command:
ssh firstname.lastname@example.orgBy default, the client attempts to make the connection on port 22. If you need to specify a different port, just use the –p flag, followed by the alternate port number:
ssh email@example.com -p 7654(using the port that is open on your server for ssh) And that is it. Your Windows computer can now use SSH directly from the operating system. No more having to download or launch any third-party applications. For further explanation of SSH and the optional commands visit SSH Communications Security, the company behind SSH (Secure Shell).