In many cases, to manage your Linux servers, you can need to allow remote access and this can be done via the Secure Shell (SSH). Since many years ago, Linux systems can use the native terminal to use SSH but it was not the case for Windows systems which need some tools to be installed.
Windows systems have seen many improvements so that you don't need to install a tool but you can use native tools which are available. In this tutorial, we will learn how to ssh a Linux machine from Windows with the native tools.
What to know about SSH
Secure Shell is a secure and encrypted connection protocol allowing remote and secure sign-ins over unsecured connections. The connection works in the client-server mode, so the connection is established by the SSH client connecting to the SSH server.
SSH offers several options for user authentication and the most common ones are passwords and public key authentication methods:
- password: it works like the usual process for a local computer which means that you need to have the username and password of an existing account on the server.
- public key: the principle is to have a cryptographic key pair public key and private key where the public key is configured on the server to authorize access and grant anyone who has a copy of the private key access to the server.
1) Install feature OpenSSH windows 10 client
Windows machines now allow you to use native tools to establish a SSH connection but you need first to make sure that the feature Openssh windows client is installed. Normally is not installed by default so you will need first to do it. Go to Windows -> Settings -> Apps -> Manage optional feature
Click Add a feature
Select OpenSSH Client and then install.
Now it's installed
2) SSh connection with Windows Powershell and command prompt
Now you can decide to use the command prompt or Windows PowerShell to access your Linux server via ssh.
a) SSh with Windows Powershell
The Windows Powershell native tool allows you to remotely connect to a server via ssh. You just have to open it with
Windows + r then hit the key
Now enter the command the ssh command for the connection to your remote Linux server:
ssh [email protected]
b) SSh with command prompt
To remotely access your server via the command, you just have to launch it with the key combination
Windows + r and then enter cmd
Now in the command prompt, you can use the ssh command as with powershell
Now you know how you can connect to your remote Linux server with SSH with the native tools offered by Windows. You can choose to use putty tool as well but now it's easiest and more comfortable to use the tools which are offered by default.
- Learn Uses of ssh Command in Linux With Examples
- How to Setup Passwordless Ssh Login in Linux Systems