Ad Code

How To Create A Custom SSH Entry In Windows Terminal

After using Windows Terminal, I found that typing commands under Windows can also be so enjoyable. With its beautiful appearance, silky response, and perfect support for WSL, many people who rely heavily on the command line have turned to Microsoft.

Windows Terminal

When Windows Terminal is opened, the default Terminal is Windows PowerShell. Click the + sign in the TAB bar to open a new TAB, and click the downward arrow to select the target Terminal. If you have WSL enabled and have WSL Ubuntu, CentOS or other distributions installed, an entry will be automatically added to this menu, as shown the Ubuntu-20.04 below.

Entries in Windows Terminal

As you can see, there are three custom menus on the figure, which are CentOS VM, R2S and ECS respectively. The first one is my virtual machine, the second one is my soft route, and the third one is my ECS server in Aliyun Cloud. 

How do I add them?

In previous versions, you had to manually edit the JSON file to add options, but now it's much easier. Just click the Settings option, then click + Add under Profile on the left, and then enter menu information on the right. Take R2S as an example. 

Enter ssh root@ on the command line to SSH into the root account on the soft route. Icons can be customized, it is suggested to find a Logo on the Internet, cut into a square picture. Icon files should be saved in a place where they can't be easily deleted, otherwise they will display empty icons. 

More interesting is the "Appearance" settings, where you can directly set different terminals to different appearance, including color, font, font size can be changed. 

Terminal is Microsoft's open source project. If you have a new idea or have a problem, you can post an Issue on GitHub. Of course, you can contribute code as well. Project address: Microsoft/Terminal 

Post a Comment


Ad Code