Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question associated with issue #156 #165

Closed
Al7ech opened this issue Aug 3, 2019 · 2 comments
Closed

Question associated with issue #156 #165

Al7ech opened this issue Aug 3, 2019 · 2 comments

Comments

@Al7ech
Copy link

Al7ech commented Aug 3, 2019

I'm trying to connect to my machine with ssh fs using ~/.ssh/config file.

And I get the same error from #156.

From the issue #156 , I understood that adding "username":"$USERNAME" would fix the problem. But still ssh fs gives me the same error(asking username, then "Error while connecting to SSH FS server:
getaddrinfo ENOTFOUND server server:22" pops out).

Am I understanding something wrong?

here's my settings

{
"host": "server",
"root": "~/",
"username": "$USERNAME"
}

@SchoofsKelvin
Copy link
Owner

SchoofsKelvin commented Aug 5, 2019

Depending on your operating system you're running vscode on, you might have to use $USER instead of $USERNAME. I'll see about making the Settings UI suggest $USER or $USERNAME depending on which one is found on the OS, otherwise possibly mapping one to the other by default.

Mind that the extension doesn't actually use any config files (apart from vscode's settings.json and SSH FS config files referenced by sshfs.configpaths there), so it won't use ~/.ssh/config. It is something that's been planned and has been worked on: #107

@Al7ech
Copy link
Author

Al7ech commented Aug 5, 2019

According to my OS (mac OS Mojave version 10.14.4) both $USER and $USERNAME exists.

If the release version doesn't use config file, I should set the settings.json files. Thanks.

@Al7ech Al7ech closed this as completed Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants