-
Notifications
You must be signed in to change notification settings - Fork 267
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
Can't use .ssh/config alias with HostName #396
Comments
Please try 1.7.6-debug. |
Hello. Thanks for your reply. I just tried with the 1.7.6-debug version and same result. I'll attach the logs with debug enabled:
Anything else I can try? |
@RixzZ Try 1.7.6-debug.1. |
Hello. Same thing :/
|
@RixzZ I think this is still the old version. Try to uninstall sftp-debug and quit vscode and reinstall. |
Oh, okay. Now the log is bigger:
Seems like it can see the config at least. I don't know if this is important, but on this PC, right now I also apply this settings for all connections:
The 'IdentitiesOnly yes' is needed in my case because I have two keys that can access the 'rpi-rsa' server. One ed25519 and one rsa I created for the SFTP plugin since it can't use ed25519. Maybe the plugin don't see that flag and try to login with the edd25519? |
It can see the config, but only a part of.
It can't see HostName. BYW, you didn't give the full log. Please provide the full log. |
Okay, I rechecked the .ssh/config because I have made changes before. Now: .ssh/config
Full log:
Now the hostname is correctly picked. The weird thing now is that authentication fails because the server is receiving the auth with the user 'rpi' instead of just 'pi':
|
Ups, sorry for that one. Now is working. Thanks! Do you know when the fix will be available in the release version? |
V1.7.6 is released. |
After that update , i can't connect to ssh :/ [warn] ENOENT: no such file or directory, open 'C:\Users\m.ssh\config' load C:\Users\m.ssh\config failed |
@ptaszek1 Please file a new issue. |
i have the same issue: |
Same issue. [warn] ENOENT: no such file or directory, open 'C:\Users\NAME.ssh\config' load C:\Users\NAME.ssh\config failed |
Do you read the FAQ?
Describe the bug
If I try to connect to a host defined on my .ssh/config when an alias (and a HostName), the plugin replies with: getaddrinfo ENOTFOUND.
I can use the same alias with SSH and it works just fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The plugin should connect correctly when using the SSH_AGENT and the configuration from .ssh/config.
Current SFTP config
Current .ssh/config section for that Host:
Desktop (please complete the following information):
Extension Logs - required
The text was updated successfully, but these errors were encountered: