Setup SFTP Extension in VSCode
VS Code currently do not support IBM power 9 servers remote development. If this is your case, you can:
- Install the extention SFTP sftp/ftp sync
- Follow the instructions to add the server information from here.
SFTP Extension
Ctrl+Shift+P
on Windows/Linux orCmd+Shift+P
on Mac open command palette, run SFTP: config command.- Add this configuration to the opened file:
{
"name": "My Site",
"host": "my.ftp.net",
"protocol": "sftp",
"port": 22,
"username": "user",
"password": "pass",
"remotePath": "/home",
"uploadOnSave": true,
"interactiveAuth": true
}
If you are using your public/private key to login to the remote server, and if your key has a pass phrase, add this configuration as well: "passphrase": true,
Add multiple profiles to SFTP extension
Edit sftp.json
as following:
{
"name": "Project",
"protocol": "sftp",
"port": 22,
"defaultProfile": "HostA-debug",
"profiles": {
"HostA-debug": {
"host": "HostA",
"remotePath": "/path/to/Project-Debug",
"privateKeyPath": "~/.ssh/id_rsa",
"passphrase": true,
"uploadOnSave": true,
"interactiveAuth": true
},
"HostA-release": {
"host": "HostA",
"remotePath": "/path/to/Project-Release",
"privateKeyPath": "~/.ssh/id_rsa",
"passphrase": true,
"uploadOnSave": true,
"interactiveAuth": true
},
"HostB-debug": {
"host": "HostB",
"remotePath": "/path/to/Project-Debug",
"privateKeyPath": "~/.ssh/id_rsa",
"passphrase": true,
"uploadOnSave": true,
"interactiveAuth": true
},
"HostB-release": {
"host": "HostB",
"remotePath": "/path/to/Project-Release",
"privateKeyPath": "~/.ssh/id_rsa",
"passphrase": true,
"uploadOnSave": true,
"interactiveAuth": true
}
}
}