Windows Terminal是微软开源的一个款终端模拟软件。在微软应用商店即可下载
我们可以通过一些简单的配置设置一些好看的背景,以及不同透明度和默认设置。让我们用起来更方便。下面是我的一些配置
// This file was initially generated by Windows Terminal 1.2.2381.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{b453ae62-4e3d-5e58-b989-0a998ec44123}", //默认选项卡,这里配置的是hadoop01的配置
// You can add more global application settings here.
// To learn more about global settings, visit https://aka.ms/terminal-global-settings
// If enabled, selections are automatically copied to your clipboard.
"copyOnSelect": true,
// If enabled, formatted data is also copied to your clipboard
"copyFormatting": true,
// A profile specifies a command to execute paired with information about how it should look and feel.
// Each one of them will appear in the 'New Tab' dropdown,
// and can be invoked from the commandline with `wt.exe -p xxx`
// To learn more about profiles, visit https://aka.ms/terminal-profile-settings
"profiles": {
"defaults": {
// Put settings here that you want to apply to all profiles.
"backgroundImage": "ms-appdata:///roaming/img103.png", //背景图
"backgroundImageOpacity": 0.3, //透明度
"backgroundImageStrechMode": "fill"
},
"list": [
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec44123}",
"hidden": false,
"name": "hadoop01", //选项卡名称
"commandline": "ssh root@192.168.229.101" //选项卡命令
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec44456}",
"hidden": false,
"name": "hadoop02",
"commandline": "ssh root@192.168.229.102",
"backgroundImage": "ms-appdata:///roaming/img104.jpg",
"backgroundImageOpacity": 0.3,
"backgroundImageStrechMode": "fill"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a6698c44456}",
"hidden": false,
"name": "hadoop03",
"commandline": "ssh root@192.168.229.201",
"backgroundImage": "",
"useAcrylic": true,
"acrylicOpacity": 0.5
},
{
"guid": "{b453ae62-4e4d-5e58-a989-0a6698c44456}",
"hidden": false,
"name": "hadoop04",
"commandline": "ssh root@192.168.229.202"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a8398c44456}",
"hidden": false,
"name": "hadoop05",
"commandline": "ssh root@192.168.229.203"
},
{
"guid": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"hidden": false,
"name": "PowerShell",
"source": "Windows.Terminal.PowershellCore"
},
{
"guid": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
"hidden": false,
"name": "Ubuntu-20.04",
"source": "Windows.Terminal.Wsl"
},
{
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
"hidden": false,
"name": "Azure Cloud Shell",
"source": "Windows.Terminal.Azure"
}
]
},
// Add custom color schemes to this array.
// To learn more about color schemes, visit https://aka.ms/terminal-color-schemes
"schemes": [],
// Add custom keybindings to this array.
// To unbind a key combination from your defaults.json, set the command to "unbound".
// To learn more about keybindings, visit https://aka.ms/terminal-keybindings
"keybindings": [
// Copy and paste are bound to Ctrl+Shift+C and Ctrl+Shift+V in your defaults.json.
// These two lines additionally bind them to Ctrl+C and Ctrl+V.
// To learn more about selection, visit https://aka.ms/terminal-selection
{
"command": {
"action": "copy",
"singleLine": false
},
"keys": "ctrl+c"
},
{
"command": "paste",
"keys": "ctrl+v"
},
// Press Ctrl+Shift+F to open the search box
{
"command": "find",
"keys": "ctrl+shift+f"
},
// Press Alt+Shift+D to open a new pane.
// - "split": "auto" makes this pane open in the direction that provides the most surface area.
// - "splitMode": "duplicate" makes the new pane use the focused pane's profile.
// To learn more about panes, visit https://aka.ms/terminal-panes
{
"command": {
"action": "splitPane",
"split": "auto",
"splitMode": "duplicate"
},
"keys": "alt+shift+d"
}
]
}
将私钥复制到指定目录下即可实现Windows Terminal免密登录到远程服务器
通过不同的用户名使用不同的私钥连接配置
在.ssh文件夹下创建config文件
Host ha
HostName hadoop01
User root
IdentityFile C:\Users\jone\.ssh\id_rsa
User hadoop
IdentityFile C:\Users\jone\.ssh\hadoop_id_rsa
使用命令
ssh root@ha
#或
ssh hadoop@ha