liximomo / vscode-remote-fs

Working with any file in everywhere with vscode.
MIT License
167 stars 18 forks source link

can't find remote #40

Open alchemyconsulting opened 5 years ago

alchemyconsulting commented 5 years ago

This is a great idea, but totally broken for me - I can't get it to connect to any of my sftp servers. Just get "can't find remote" keep flashing up. Any way to diagnose this?

liximomo commented 5 years ago

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Extension Logs - required You can get the logs from View > Output > remote-fs.

tamasforgacs commented 5 years ago

I had the same issue and I have found the problem: config error. Click on ! icon on the bottom left to see the warnings, it helps in fixing the error.

My wrong config was: { "remotefs.remote": { "densebox": { "scheme": "sftp", "host": "adas276linux", "username": "tamas.forgacs", //"password": "", //"port": 22, //"privateKeyPath": "/home/forgi/.ssh/id_rsa", //"interactiveAuth": false, "rootPath": "/home//tamas.forgacs/work/densebox" } } } From terminal I can connect to host like this:

sftp tamas.forgacs@adas276linux

I open code like this:

code --folder-uri sftp://densebox/

I see "can't find remote error":

image

liximomo commented 5 years ago

Did you save your setting?

tamasforgacs commented 5 years ago

No, sorry.

From: X.L notifications@github.com Sent: Wednesday, October 31, 2018 6:57 AM To: liximomo/vscode-remote-fs vscode-remote-fs@noreply.github.com Cc: Tamas Forgacs tamas.forgacs@aimotive.com; Comment comment@noreply.github.com Subject: Re: [liximomo/vscode-remote-fs] can't find remote (#40)

Have you saved your setting?

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/liximomo/vscode-remote-fs/issues/40#issuecomment-434570422, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AmEQB3vhmFXUADMx4wBAGmM2Q3__6Ng-ks5uqTu2gaJpZM4X58B1.


This e-mail and any files transmitted with it contain confidential and may contain privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized use, copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

erman999 commented 1 year ago

You need to install "Remote - SSH" package provided by Windows. After installation this error doesn't occur again. Restart VS Code just in case.