Closed YanzhongSu closed 4 years ago
I think it's not supported now
try this
{
"name": "Remote Server",
"protocol": "sftp",
"port": 22,
"ignore": [
".vscode",
".DS_Store",
"__debug_bin",
"*.exe",
".git",
".gitignore"
],
"watcher": {
"files": "**/*",
"autoUpload": true,
"autoDelete": true
},
"profiles": {
"name1": {
"host": "xxxxxx",
"username": "xxxxxx",
"password": "xxxxxx",
"remotePath": "xxxxxx"
},
"name2": {
"host": "xxxxxx",
"username": "xxxxxx",
"password": "xxxxxx",
"remotePath": "xxxxxx"
},
"name3": {
"host": "xxxxxx",
"username": "xxxxxx",
"password": "xxxxxx",
"remotePath": "xxxxxx"
}
}
}
try this
{ "name": "Remote Server", "protocol": "sftp", "port": 22, "ignore": [ ".vscode", ".DS_Store", "__debug_bin", "*.exe", ".git", ".gitignore" ], "watcher": { "files": "**/*", "autoUpload": true, "autoDelete": true }, "profiles": { "name1": { "host": "xxxxxx", "username": "xxxxxx", "password": "xxxxxx", "remotePath": "xxxxxx" }, "name2": { "host": "xxxxxx", "username": "xxxxxx", "password": "xxxxxx", "remotePath": "xxxxxx" }, "name3": { "host": "xxxxxx", "username": "xxxxxx", "password": "xxxxxx", "remotePath": "xxxxxx" } } }
What if I need use different ports for different hosts ?
How to add multiple host in sftp.json file? Below config does not work