Windows Terminal JSON配置SSH记住密码

sshpass下载地址

https://github.com/xhcoding/sshpass-win32/releases

C:\Users\XXXX\AppData\Local\Microsoft\Windows Terminal\settings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema-preview",
"actions": [],
"copyFormatting": "none",
"copyOnSelect": true,
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"keybindings":
[
{
"id": "Terminal.PrevTab",
"keys": "ctrl+left"
},
{
"id": "Terminal.NextTab",
"keys": "ctrl+right"
}
],
"newTabMenu":
[
{
"type": "remainingProfiles"
},
{
"allowEmpty": false,
"entries":
[
{
"commandline": null,
"name": null,
"source": "Windows.Terminal.SSH",
"type": "matchProfiles"
}
],
"icon": "\ue969",
"inline": "auto",
"name": "SSH",
"type": "folder"
}
],
"profiles":
{
"defaults": {},
"list":
[
{
"commandline": "ssh root@172.20.6.XXX",
"guid": "{68cb47a9-f008-5ea7-bcb3-578e23e98a1b}",
"hidden": false,
"name": "Acer-Laptop"
},
{
"commandline": "sshpass -p \"******\" ssh -o StrictHostKeyChecking=no root@172.20.XX.1XX",
"guid": "{e471f8d2-0db8-5cbb-8ef1-eeea172c27f5}",
"hidden": false,
"name": "RK3528-openeuler22"
},
{
"commandline": "sshpass -p \"******\" ssh -o StrictHostKeyChecking=no root@172.20.XX.2XX",
"guid": "{5804faa6-8529-56bb-a68d-347d56833356}",
"hidden": false,
"name": "XXXX"
}
]
},
"schemes": [],
"tabSwitcherMode": "disabled", //不要显示标签切换小窗口
"themes": [],
"wordDelimiters": " /\\()\"'-.,:;<>~!@#$%^&*|+=[]{}~?\u2502<>"
}