liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

If i want put to many host the Sftp only recognize one #890

Closed Ariaz39 closed 3 years ago

Ariaz39 commented 3 years ago

The problem: If i want put to many host the Sftp only recognize one (they are different hosts not profiles ). that is, the last. I followed the instructions but it doesn't work for me

Screenshots image This is the estructure that i'm using

is in W10 with the last upgrade of Sftp extension

I need help pls.

war1644 commented 3 years ago

me too

Ariaz39 commented 3 years ago

it finally worked for me, you should use it like this.

Code

[ { "name": "Host1", "context": "Host1", "host": "host1.com", "protocol": "ftp", "port": 21, "username": "host1", "remotePath": "/public_html", "password": "Password", "uploadOnSave": true }, { "name": "Host2", "context": "Host2", "host": "host2.com", "protocol": "ftp", "port": 21, "username": "host2", "remotePath": "/public_html", "password": "Password", "uploadOnSave": true } ]