xpipe icon indicating copy to clipboard operation
xpipe copied to clipboard

Feature Request: SSH Key Generation

Open jbmay opened this issue 1 month ago • 2 comments

It would be nice if xpipe supported generating a new ssh key when adding an identity.

Use case

When provisioning a new machine or VM you can typically provide a public key to be associated with a user that is auto configured when the machine or VM starts up. Since I want xpipe to manage my SSH connections anyway, it would be convenient if I could add a new identity in xpipe, have it auto generate an SSH key and give me a public key, and then add that public key to whatever tooling is provisioning the VM or machine before it gets deployed.

Versus the current flow which is to generate an SSH key pair, add the public to the VM/server, copy the private key somewhere on my host running xpipe, and then import the key file into xpipe vault sync.

This would be particularly convenient for those using a similar workflow as I do. All of my homelabbing is done on a remote VM and I mostly only use my desktop or laptop/mac to remotely connect to it through VS Code SSH extension. So if I generate a new SSH key for a new service I am about to provision, the private key is on that remote VM not my machine running xpipe, which requires me to copy the private key to get it into xpipe.

Alternative improvements

Alternatively or in addition to this, being able to paste an SSH key into xpipe while generating a user and have it create the file in xpipe's vault instead of having to select a file that already exists could be useful too. This would cut out the step of having to save the key to a file on the local machine before adding it to an xpipe identity if a key is already being copied from a password manager or a remote machine.

jbmay avatar Nov 01 '25 15:11 jbmay

I see the point, however that is a task with a lot of hidden complexity. Especially when it comes to also supporting all the new types of keys for the post-quantum SSH keys.

The idea about making it easier to use private keys by pasting them or something like that sounds like a good idea, I think that should be possible somehow

crschnick avatar Nov 01 '25 20:11 crschnick

You can check if the new key option in https://github.com/xpipe-io/xpipe-ptb works for you

crschnick avatar Nov 02 '25 23:11 crschnick

This is now released

crschnick avatar Nov 16 '25 11:11 crschnick