-
Notifications
You must be signed in to change notification settings - Fork 141
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
[Feature Request] Import from PuTTY/KiTTY/etc #342
Comments
Hmm, there is still some information missing like authentication methods such as key files. Such an import functionality would only result in incomplete connections. Do these tools support exporting to a SSH config file? |
Thanks for taking a look! There's a couple of options stored in the registry key regarding authentication: Password: this seems to be an encrypted value There is then a key for AgentFwd which means "Allow agent forwarding". PuTTY has a version of the SSH agent where the keys can be loaded into, then used globally. Looks like there's one project here: https://github.com/abdrakhmanov/PuTTY-to-OpenSSH-Converter might be an option. |
Yeah the password can probably not be decrypted. The key files are in a putty-specific format and there are no command-line tools from putty available to convert that into a normal .pem key on Windows. (I guess that's vendor lock in for you) XPipe already support the putty agent (pageant). |
Yeah, they're generated by the PuTTYgen application which is doesn't look like has much of a command line interface (and can be exported out as standard openssh versions), apparently that's by design for the randomness factor in Windows. It looks like the Linux version of this does have the command line options, but probably not too relevant here I suppose. |
Yeah without being able to convert keys I think this is going to be difficult |
I wonder if making a little popup warning might be an option, something like "Please note: passwords and SSH key configs from PuTTY are not imported, these should be updated manually". Then importing the configs themselves. |
But then you still have to go through every single key in putty and export it manually and then add it in XPipe. |
Good point there, if someone has lots it would be a pain. Another possibility might be adding in support for the plink application, it can load sessions with the |
In theory it could just run |
I would rather have the option to import incomplete sessions as that's a start versus creating everything manually. It would be best if functionality to import similar to MobaXTerm and Termius is considered as a feature. |
I mean effectively it would only really import the connection name and host address in that scenario. The rest could either not be imported, like the keys, or could not be mapped as many options are completely different between xpipe and putty. The same would probably go for mobaxterm. With termius, I don't think there will be an import functionality because their vault is completely locked down not accessible to any outside tool. |
If only name and address are imported, that's still better than nothing if one manages dozens or hundreds of hosts. While Termius does have an import function (from MobaXTerm, PuTTY, .csv, SecureCRT, ssh_config), it's lacking an export function, which is what drove me to look into Xpipe; however, importing is blocking me from considering this at all. |
XPipe has a fully supported import functionality for OpenSSH config files, that is the only format that is actually usable. If other tools could export to that, would be a whole lot easier. But yes I see your point. I can look into adding some port of import functionality, although that one will still be incomplete. If that is still satisfactory, then I guess it works. I was holding off on this because that didn't seem that desirable |
So I worked on this in https://github.com/xpipe-io/xpipe-ptb/releases If you want, you can quickly try whether the import works correctly. The rest of the build is pretty unstable, so I wouldn't recommend using that other than for testing this. |
Wondering if it might be possible to support importing from PuTTY/KiTTY (KiTTY being a fork of PuTTY).
The settings are stored within the registry at the below locations:
KiTTY: HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions
PuTTY: HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
This looks like the following in the regedit:
Fields of interest may be the:
HostName - connection hostname
UserName - username to pass to the SSH session.
Protocol - with PuTTY supporting multiple protocols, this can be ssh, telnet, serial, etc.
Autocommand - this is a command which is sent to the SSH session once logged in.
The session name would come from the registry key name, it seems to use HTML encoding so %20 as spaces etc.
The text was updated successfully, but these errors were encountered: