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

"permission denied " occurs when not using the system defaut ssh_config path #186

Open
BEN-DELSIN-BLACK opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@BEN-DELSIN-BLACK
Copy link

Describe the bug

I set the ssh_config{ ssh_config_file_paths } to a path which is not the system default ssh_config path like "~/.ssh/config".
And "permission denied" occured. I found that it displayed like "aaa@bbb" and "aaa" is the user name of my local machine not the "User" defined in my ssh_config of the remote server.

I copied the same content to "~/.ssh/config" and changed ssh_config{ ssh_config_file_paths }, and then the problem is gone.

So the bug(or if it's normal actually?) is the plugin can't use the correct user name defined in ssh_config when your ssh_config_file_paths is not "~/.ssh/config".

I think the problem is clear easy to reproduce, so forgive me for not providing any other materials, but if necessary, just let me know.

@BEN-DELSIN-BLACK BEN-DELSIN-BLACK added the bug Something isn't working label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant