mkloubert / vscode-remote-workspace

Multi protocol support for handling remote files like local ones in Visual Studio Code.
https://marketplace.visualstudio.com/items?itemName=mkloubert.vscode-remote-workspace
GNU Lesser General Public License v3.0
208 stars 37 forks source link

SFTP is not usable #108

Open glauber-experian opened 5 years ago

glauber-experian commented 5 years ago

First i couldn't connect. Then, i figured out that passwords need to be url-encoded. Now it connects, but doesn't display any files. There are no error messages, and logs are not created. If i add anything to the end of the server name in the sftp url (for example, to point to the actual work folder), i get a "file not found" error.

I wouldn't be able to use it anyway, due to the need to put unencrypted passwords in the configuration file, which is a no-no where i work. There doesn't seem to be an option to prompt for the password, or use a SSH key.

This is a very good idea. It would be extremely useful if it worked. As it is, at least the SFTP part needs work. (I don't have a way to test the other protocols.)

For inspiration, check out Emacs "Tramp Mode".

yonz2 commented 5 years ago

Same problem here. After installing version 0.41 opening the remote workspace and saving files forked for awhile. Then after returning and trying to make some more changes these were not saved to the remote server. It seems that the SSH connection was dropped, and the plug-in was not able to restore the connection.

DotDebian commented 5 years ago

Working fine for me, are you using the last VSCode version and the last plugin version?

glauber-experian commented 5 years ago

Should be. Code says there are no available updates.

DotDebian commented 5 years ago

Should be. Code says there are no available updates.

Any log file you could provide?

glauber-experian commented 5 years ago

Yes, i found time to do more experimentation with different kinds of hosts. This time i was actually surprised it worked for some hosts. I don't understand why. It could be coincidence, but the hosts that succeeded are RHEL 7.6 and the ones that failed are SuSE 12.3

Here are a couple of log files, with one host per file.

20190301.success.log 20190301.failure.log

The SuSE host (aiswork32) seems to be failing at the authentication phase, from what i can tell. I know 100% that the password is correct in my workspace file, because it's the same password as the other host, and i did a cut and paste.

alchemyconsulting commented 5 years ago

New version works initially and then breaks for me connecting to ec2 instances. vscode 1.30.2 and remote-workspace 0.40 works ok (ish).

alchemyconsulting commented 5 years ago

See #103

appleparan commented 5 years ago

See https://github.com/mkloubert/vscode-remote-workspace/issues/90#issuecomment-477251942

alchemyconsulting commented 5 years ago

There is now an 'official' remote plugin from microsoft, that works much, much better than this one.

https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack

Thanks to the author of this plugin for the stop-gap solution.

glauber-experian commented 5 years ago

Thanks for letting us know!

From: Alchemy Consulting notifications@github.com Sent: Wednesday, May 08, 2019 07:36 To: mkloubert/vscode-remote-workspace vscode-remote-workspace@noreply.github.com Cc: Ribeiro, Glauber glauber.ribeiro@experian.com; Author author@noreply.github.com Subject: Re: [mkloubert/vscode-remote-workspace] SFTP is not usable (#108)

There is now an 'official' remote plugin from microsoft, that works much, much better than this one.

https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpackhttps://urldefense.proofpoint.com/v2/url?u=https-3A__marketplace.visualstudio.com_items-3FitemName-3Dms-2Dvscode-2Dremote.vscode-2Dremote-2Dextensionpack&d=DwMCaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=SjsIRf81D06XmEsmKkV_wxtLjrsUQpuz8iegmn0NIEg&m=UQg23SgDBhGX1kOeAU-oeGqnb-iJnCT0Z28c2YCPcUI&s=EtJV423NJzMqM59ULxbvHeNw0F6ZflFM1oDECRy9xJw&e=

Thanks to the author of this plugin for the stop-gap solution.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_mkloubert_vscode-2Dremote-2Dworkspace_issues_108-23issuecomment-2D490468518&d=DwMCaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=SjsIRf81D06XmEsmKkV_wxtLjrsUQpuz8iegmn0NIEg&m=UQg23SgDBhGX1kOeAU-oeGqnb-iJnCT0Z28c2YCPcUI&s=PjyFNN-zv8hwTQ8ra9SoGBu_ukYJw08ZEuZdzTz2OyM&e=, or mute the threadhttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_ACQP222Z45EUHIQ5TJHFMYLPULCKPANCNFSM4GZILVXQ&d=DwMCaQ&c=BNNF-YNv0CLLslhP2Bcx5Q&r=SjsIRf81D06XmEsmKkV_wxtLjrsUQpuz8iegmn0NIEg&m=UQg23SgDBhGX1kOeAU-oeGqnb-iJnCT0Z28c2YCPcUI&s=862c0S6uTexm3z9niOqyh9BetM_-OcobXGDrwlDICyk&e=.