Попробуйте этот config.json на VScode
{
"remotePath": "/",
"host": "<IP-OR_EC2-INSTANCE-HOST-NAME>",
"username": "USERNAME",
"password": "PASSWORD",
"port": 22,
"secure": true,
"protocol": "sftp",
"uploadOnSave": true,
"passive": false,
"debug": true,
"privateKeyPath": "<PATH-TO-PEM-FILE>",
"passphrase": null,
"ignore": [
------
],
"generatedFiles": {
"uploadOnSave": false,
"extensionsToInclude": [],
"path": ""
}
}