最近在下载SFTP插件后搜索百度,博客.教的配置都只能配置一个IP.而通过侧边栏样式,这个插件明显不只是记录一个IP.
翻阅SFTP在vscode中的文档.就有多个IP的配置方式.
注意:与单个IP配置不同的是1.在最外层加[];2.单个配置中都加上"context",且每个属性都不能相同.
[
{
"name": "172.20.30.155",
"context": "123",
"host": "172.20.30.155",
"username": "root",
"password": "xxxxx",
"remotePath": "/"
},
{
"name": "172.20.30.156",
"context": "456",
"host": "172.20.30.156",
"username": "root",
"password": "xxxxx",
"remotePath": "/"
},
{
"name": "172.20.30.164",
"context": "789",
"host": "172.20.30.164",
"username": "root",
"password": "xxxxx",
"remotePath": "/"
}
]