This tutorial shows how to start an SSH terminal session under Windows, using connection with OpenSSH and Windows Terminal. Prerequisite is that the OpenSSH Client is installed on Windows. Windows Terminal can be found as an app in the Microsoft Store. After downloading, the Windows Terminal can see as wt.exe under the application settings path LOCALAPPDATA.
Windows Terminal has evolved and can be measured against modern terminals of other operating systems, such as the GNOME Terminal. It can also be seen with the well-known terminal tools under Windows, such as PuTTY and KiTTY.
Install OpenSSH on Windows, select from Apps & Features – Optional Features – Add Feature – OpenSSH Client.
A new host can be set up in the settings page with hit Ctrl+,
The host entry is added in the Windows Terminal Settings (Ctrl+,) with Add New Profile.
Just fire up and connect to the new added host.
Tip! Keys generated with ssh-keygen can be used SSH sessions without entering a password and even more securely.
SSH connection using OpenSSH in Windows Terminal
To do this, create the folder
.sshunder the home path %USERPROFILE%, in which private and public keys are stored. Then creating the file
configin this the hosts are added and configured, with the assignment of host name and the appropriate private key.
The public key (id_rsa.pub) is stored on the remote host at
configfile offers many options for configuring ssh targets so that they can be started easily in the Windows Terminal CLI.
You might also be interested in this related post here.