Edit remote Linux files in VS Code directly.
Note
Only support remote Linux machine. Some functionality (like file watching) may not work well on other operating system (like FreeBSD).
All commands are grouped in SFTP
category.
SFTP: Open Folder
to open remote folderSFTP: Add Folder
to add remote folder into workspaceSFTP: Open File
to open remote fileSFTP: Download
to download remote file/folderSFTP: Upload
to upload file/folder to remoteSFTP: Upload Folder
to upload folder to remoteSFTP: Upload File
to upload file to remoteSFTP: Remove Configuration
to remove SSH credential information stored in VS CodeSFTP: Help
to show this help documentSSH credential configuration could be required during processing, with the following json format:
{
"host": "Host Name / IP Address",
"port": 22,
"username": "User Name",
"password": "Password",
"passphrase": "Passphrase",
"privateKeyFile": "/path/to/privateKeyFile"
}
"port"
: use 22 as default"privateKeyFile"
: please use absolute path"port"
, "username"
and one of ["password"
, "privateKeyFile"
] are necessary."passphrase"
is also necessary if your "privateKeyFile"
needs it.Note
The credential configurations are stored without encryption in VS Code, including
"host"
,"port"
,"username"
,"password"
,"passphrase"
and privateKey from"privateKeyFile"
. You can useSFTP: Remove Configuration
to remove configurations.
Trigger related command by Command Palette
, Explore Context Menu
or Editor Context Menu
.
After choosing the Add New SFTP Configuration
option, the credential information is required by asking user to edit a temporary json file.
Remote resource is selected by showing user a popup quick-pick widget. Only file, folder and symbolic link to a file/folder are showed in the widget.
. (Confirm Current Folder)
option to confirm selecting current folder.Create New Folder
to create a new folder.Symbolic links are ignored on Windows when in a downloading folder, since Windows need Admin permisstion to create them.
See https://github.com/nodejs/node-v0.x-archive/issues/2274.
\
Linux file name could contain \
, but it would be treated as path seperator in VS Code.
Sincerenly thanks to these people who have contributed to this extension.
gsun4
Enjoy!