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

Graphical SSH connection can't take a SSH key #143

Open
alx359 opened this issue Apr 3, 2022 · 7 comments
Open

Graphical SSH connection can't take a SSH key #143

alx359 opened this issue Apr 3, 2022 · 7 comments

Comments

@alx359
Copy link

alx359 commented Apr 3, 2022

When trying to connect to a remote server with the Graphical SSH Connection, there's a field to add an SSH Private PPK Key but it isn't working for me.

The error says:

Unable to use key file ""C:/Users/USER/.ssh/id_rsa_conv.ppk"" (unable to open file)
Using username "root".
Access denied

Noticed how there are redundant double quotes in the key path.

Also tried with the private key file alone - id_rsa.ppk and got the same error.

The settings.json section seems okay:

 "putty": {
  "ip": "<IP>",
  "ssh_key": "C:/Users/USER/.ssh/id_rsa_conv.ppk"
 },

That aforementioned key works fine with Putty standalone and WinSCP.
Checked GWSL according the manual and all seems okay my end.
Please advise, thanks.

@Pololot64
Copy link
Member

Hey @alx359 . I think it is a bug on my end. I will try to fix in the code. In the meanwhile, GWSL can still work with putty.

@alx359
Copy link
Author

alx359 commented Apr 3, 2022

Yes, it works with a direct passw. Would you want me to test a fix?

@Pololot64
Copy link
Member

If you would like. It may be fixed in the source already I don't know.

@alx359
Copy link
Author

alx359 commented Apr 3, 2022

What do I need to do? What file(s) need change?

@Pololot64
Copy link
Member

The very end of manager.py

@alx359
Copy link
Author

alx359 commented Apr 3, 2022

Sorry, ain't familiar with the code. https://github.com/Opticos/GWSL-Source/blob/master/manager.py says to be updated like 5 months ago. Is that the file that I need to update locally, and where does it go in a W10 machine?

@Pololot64
Copy link
Member

It can run anywhere as long as it is relatively near the other files. I would maybe test by seeing what putty cmd arguments work to launch it with keys

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