Repository navigation
SSH: PuTTY keys (.ppk) used or imported; Pageant on Windows, an ssh-agent on Linux and macOS - #11
Merged
Merged
Conversation
…ent's socket chosen; the Linux app's login menu and PuTTY key import
…ey file) and PuTTY key import
…et) and PuTTY key import; docs
… (MSVC has no OPENFILENAME_SIZE_VERSION_400)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Engine (
ssh/)src/ppk.creads PuTTY's.ppkfiles, versions 2 and 3, and rearranges them into OpenSSH's form for libssh. Version 3 is Argon2id, Argon2i or Argon2d with AES-256-CBC and HMAC-SHA-256; version 2 is SHA-1. The hashes, AES and Argon2 are in the file itself, so it works the same whatever libssh was built on. Every key function (dmc_ssh_auth_key,dmc_ssh_key_public,dmc_ssh_key_export) now accepts a.ppk. There is also a newdmc_ssh_key_encrypted().src/agent.cadds a new"agent"option anddmc_ssh_agent_reachable().SSH_AUTH_SOCK).\\.\pipe\openssh-ssh-agent), or a named pipe you give. A loopback socket pair and a thread sit between libssh and the agent.Apps
~/.ssh/<name>in OpenSSH's form with the same passphrase and selects it;.ssh.Tests
dmodemssh_testnow checks:.ppkfiles from PuTTYgen 0.81 (v3 with Argon2id, v2, and unencrypted): their public lines, a wrong passphrase refused, and the OpenSSH re-export..ppkand a login through an ssh-agent at a given socket.puttygen -O public-openssh. The live tests pass, also under ASan and UBSan..ppklogin, with a wrong passphrase re-asked;ssh-keygen -yreads with the same passphrase.The engine files are the same in D-Modem/app's
native-ssh/(a companion PR there).Generated by Claude Code