Accessing the SSH server runtime system on Windows 11 or 10 is much easier compared to previous versions of it. Here we will show how to use Command Prompt to access remote machines through SSH protocol.
Secure Shell, or âSSHâ for short, is a nifty tool for network administrators because it provides an encrypted, and therefore secure, way to establish a connection with remote systems. And gives the possibility to access computers via the command line, particularly common in the Unix / Linux world. File transfers between the SSH client and the host are also possible.
Well, since not all of us are Linux system users, that doesn’t mean we can’t use it in SSH on Windows. However, it was not possible for all Windows systems to use the SSH command line out of the box, at least not before Windows 10. This is because Microsoft had integrated an SSH client into Windows 10 with the version 1709 in 2017. That means we don’t. t require third-party applications such as PUTTY to use SSH functions in Windows.
Let’s see how we can use Windows 11 or 10 SSH client
Install the OpenSSH client and server on Windows 11
Although the default SSH server and client is available on Windows 10/11, if you are unsure, use the command below to confirm.
Check the availability of OpenSSH
Open PowerShell as administrator and run:
Get-WindowsCapability -Online | Where-Object Name -like 'OpenSSH*'
If any of the SSH client or server features are not available, use the commands below as per PowerShell (Admin) requirements.
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
How to use SSH in Windows 11/10
In recent years, Microsoft has opened up to open source projects, as evidenced by the firm integration of the OpenSSH client into the system.
To use SSH, open Command Prompt or Windows PowerShell from the Start menu, then just run a command.
When we run the above command, it will show all the options we can use with the command.
Well, the way SSH works to connect the server is similar to Linux or macOS, so if you are already familiar with these operating systems, there will be no difficulty.
To connect to an SSH server, use the following command syntax:
ssh [emailÂ protected]/domain
In the above syntax, you need to replace the username with the user of the remote PC that you want to connect and the IP address / domain with the real address of this one.
ssh [emailÂ protected]
h2s is the username with which you connect to the remote server as well as the IP address of the latter.
SSH encryption is based on the exchange of keys. If you are connecting to the server the first time, you will be prompted to enter the key by typing ” Yes” to confirm.
After that, enter the password of the selected user. As soon as the connection is established, you will be able to execute all terminal commands on the remote server via SSH.
For a specific or custom SSH port:
By default, the SSH server and the client communicate on port 22, however, sometimes the server can be configured to use a custom port. Then to connect the same we need to specify the port number configured in the command by declaring the ” -p âFollowed by Harbor.
For example, if it is ” 6200 â, Use the following method to establish the SSH connection:
ssh [emailÂ protected] -p 6200