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

Unable to connect to server using SSH Key #358

Closed
nixOS-daveslab opened this issue Oct 11, 2024 · 5 comments
Closed

Unable to connect to server using SSH Key #358

nixOS-daveslab opened this issue Oct 11, 2024 · 5 comments

Comments

@nixOS-daveslab
Copy link

Hi!
Very silly question, but I cannot figure this out.

My Problem: Unable to connect to server using an SSH key, password authentication is working fine.

The desktop I am using has the private key locally under /home/david/.ssh/id_rsa
The private key is password protected.

When connecting to the target server I am able to authentication without issues from my desktops terminal ( kitty ). This is with the ssh key

When connecting to the target server using xpipe I encounter the following error
"An error Occurred: Identity file /home/david/.ssh/id_rsa does not exist."

In Xpipe
I have configured the server with the following:
Guest user: david
User password: blank

Guest Identity
Identity file ( points to the local path of where the ssh key is located)
/home/david/.ssh/id_rsa

password:
private key password.

I'm sure I am just missing something really small here, if so please feel free to smack my head in and provide the documentation.
I've also ensured on this local desktop that houses the key has ssh forwarding enabled.

@crschnick
Copy link
Member

Do you have a gateway configured for the SSH connection?

@nixOS-daveslab
Copy link
Author

This is 100% user error and a misunderstanding of the GUI on my part.

Missing details that actually mattered.
The remote server is a VM hosted on proxmox, i attempted to use my local ssh key running Xpipe on my local desktop wrongfully assuming it was going to forward my local SSH key.

A quick peak in to the Auth logs on the guest clarified that for me real quick. As it wasn't my local system authenticating to the guest, but the proxmox host. I went ahead and generated a ssh from the host to the target system, and all is well. In the future I understand that I'd need to add the Guest VM's as an individual server, or maintain keys from the host / jump server.

@crschnick
Copy link
Member

Yeah I can see the confusion. The VM key support is pretty new, so I didn't really consider that. But I can think about possible solutions. The problem is that technically the VM host doesn't have access to your local key files, so any solution to this is complicated.

@crschnick
Copy link
Member

Would you say that this help text would have cleared up your confusion: 51d434c#diff-2b4b180306f913fd6b507faad12a8beb49c76ae5d1a02008f03c08e84913fc1f

If so, I will add that help button to that SSH key option in the next update

@crschnick
Copy link
Member

This improved documentation has now been released I should hopefully make this situation more clear for others in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants