I have test the extension in windows pc, beacause of my fault, it is really cased by windows os path format, (uri.path and uri.fspath is different in windows os), This version has fixed it for windows users. Enjoy...
upload or download files from remote server via ssh2 and sftp
localPath is ok now, it must be set to directory contains your files;
Just simple set some config, upload file to server, get rid of vim or emacs;
not support download directory, it fouces on uploading to remote server, compensate for your difficulty on vim or emacs;
-
ctrl + s
will trigger upload -
right click to select upload to server;
-
right click in explorer to upload directory or file to server;
-
cmd+shift+p
input upload command to upload file to remote server; -
cmd+shift+p
input download command to download file to local; -
cmd+shift+p
input readdir command to see dirtory; -
cmd+shift+p
input next server command to switch server, need setting;
First, set config in .vscode-upload.json
in your workspace
- host: the address of remote server;
- port: the port of ssh2 server, default 22;
- username: your user name
- password: your password
- remotePath: the absolute path of your project in remote server;
- localPath: the absolute root path contains your local files;
- disable: setting true will stop uploading when ctrl+s, default false;
- private_Key: private key path to authenriate;
- exclude: exclude directory name;
For example:
{
"host": "10.100.6.175",
"port": 22,
"username": "****",
"password": "****.****",
"remotePath": "/data04/****/repos/i18n_web",
"localPath": "/Users/****/coding/todomvc",
"disable": false,
"exclude": ["node_modules"] // or ""node_modules""
}
or
[{
"host": "10.1.6.175",
"port": 22,
"username": "****",
"password": ********",
"remotePath": "/data04/****/repos/i18n_web",
"disable": false
},{
"host": "10.1.6.188",
"port": 22,
"username": "****",
"password": "*******",
"remotePath": "/data04/****/repos/i18n_web",
"disable": false
}]
for multi-server to switch
node: v6.6.0
npm: 3.10.3
only support sftp via ssh2
- 0.0.2 change vscode verion.
- 0.0.6 reuse connection, much more fast.
- 0.0.7 add filesize uploaded show, connect again when config file changed.
- 0.0.8 change readme and some code fix.
- 0.0.9 create config file auto in workspace.
- 0.1.0 fix some status show.
- 0.1.1 add upload dir to remote, add right click menu in explorer.
- 0.1.2 upload readme and multi-server support and server switch.
- 0.1.3 fix bug.
- 0.1.4 add private key authenriate, add local path config setting.
- 0.1.5 fix path problem in windows pc.