summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
AgeCommit message (Collapse)Author
2019-12-30simplify the list for moduli options - no need for -compact;Jason McIntyre
2019-12-30Remove the -x option currently used for FIDO/U2F-specific key flags.Damien Miller
Instead these flags may be specified via -O. ok markus@
2019-12-30document SK API changes in PROTOCOL.u2fDamien Miller
ok markus@
2019-12-30translate and return error codes; retry on bad PINDamien Miller
Define some well-known error codes in the SK API and pass them back via ssh-sk-helper. Use the new "wrong PIN" error code to retry PIN prompting during ssh-keygen of resident keys. feedback and ok markus@
2019-12-30improve some error messages; ok markus@Damien Miller
2019-12-30SK API and sk-helper error/PIN passingDamien Miller
Allow passing a PIN via the SK API (API major crank) and let the ssh-sk-helper API follow. Also enhance the ssh-sk-helper API to support passing back an error code instead of a complete reply. Will be used to signal "wrong PIN", etc. feedback and ok markus@
2019-12-30implement loading resident keys in ssh-addDamien Miller
"ssh-add -O" will load resident keys from a FIDO2 token and add them to a ssh-agent. feedback and ok markus@
2019-12-30implement loading of resident keys in ssh-sk-helperDamien Miller
feedback and ok markus@
2019-12-30resident keys support in SK APIDamien Miller
Adds a sk_load_resident_keys() function to the security key API that accepts a security key provider and a PIN and returns a list of keys. Implement support for this in the usbhid middleware. feedback and ok markus@
2019-12-30Factor out parsing of struct sk_enroll_responseDamien Miller
We'll reuse this for extracting resident keys from a device. feedback and ok markus@
2019-12-30basic support for generating FIDO2 resident keysDamien Miller
"ssh-keygen -t ecdsa-sk|ed25519-sk -x resident" will generate a device-resident key. feedback and ok markus@
2019-12-30remove single-letter flags for moduli optionsDamien Miller
Move all moduli generation options to live under the -O flag. Frees up seven single-letter flags. NB. this change break existing ssh-keygen commandline syntax for moduli- related operations. Very few people use these fortunately. feedback and ok markus@
2019-12-30prepare for use of ssh-keygen -O flag beyond certsDamien Miller
Move list of available certificate options in ssh-keygen.1 to the CERTIFICATES section. Collect options specified by -O but delay parsing/validation of certificate options until we're sure that we're acting as a CA. ok markus@
2019-12-27sort -Y internally in the options list, as is already done in synopsis;Jason McIntyre
2019-12-27in the options list, sort -Y and -y;Jason McIntyre
2019-12-21Replace the term "security key" with "(FIDO) authenticator".Christian Weisgerber
The polysemous use of "key" was too confusing. Input from markus@. ok jmc@
2019-12-21Allow forwarding a different agent socket to the path specified byDamien Miller
$SSH_AUTH_SOCK, by extending the existing ForwardAgent option to accepting an explicit path or the name of an environment variable in addition to yes/no. Patch by Eric Chiang, manpage by me; ok markus@
2019-12-20SSH U2F keys can now be used as host keys. Fix a garden path sentence.Christian Weisgerber
ok markus@
2019-12-20Move always unsupported keywords to be grouped with the other ones.Darren Tucker
Move oSecurityProvider to match the order in the OpCodes enum. Patch from openbsd@academicsolutions.ch, ok djm@
2019-12-20Remove obsolete opcodes from the configuation enum. Patch fromDarren Tucker
openbsd@academicsolutions.ch, ok djm@
2019-12-20Remove now-obsolete config options from example in comment. Patch fromDarren Tucker
openbsd@academicsolutions.ch, ok djm@
2019-12-19Document that security key-hosted keys can act as host keys.Christian Weisgerber
Update the list of default host key algorithms in ssh_config.5 and sshd_config.5. Copy the description of the SecurityKeyProvider option to sshd_config.5. ok jmc@
2019-12-19"Forward security" -> "Forward secrecy" since that's the correct term.Darren Tucker
Add "MAC" since we use that acronym in other man pages. ok naddy@
2019-12-17cut obsolete lists of crypto algorithms from outline of how SSH worksChristian Weisgerber
ok markus@ jmc@
2019-12-16strdup may return NULL if memory allocation fails. Use the safer xstrduptobhe
which fatals on allocation failures. ok markus@
2019-12-16sort sk-* methods behind their plain key methods cousins for nowDamien Miller
2019-12-15don't treat HostKeyAgent=none as a path either; avoids spuriousDamien Miller
warnings from the cfgparse regress test
2019-12-15do not attempt to find an absolute path for sshd_configDamien Miller
SecurityKeyProvider=internal - unbreaks cfgparse regress test
2019-12-15allow ssh-keyscan to find security key hostkeysDamien Miller
2019-12-15allow security keys to act as host keys as well as user keys.Damien Miller
Previously we didn't do this because we didn't want to expose the attack surface presented by USB and FIDO protocol handling, but now that this is insulated behind ssh-sk-helper there is less risk. ok markus@
2019-12-13actually commit the ssh-sk-helper client code; ok markusDamien Miller
2019-12-13perform security key enrollment via ssh-sk-helper too. This meansDamien Miller
that ssh-keygen no longer needs to link against ssh-sk-helper, and only ssh-sk-helper needs libfido2 and /dev/uhid* access; feedback & ok markus@
2019-12-13allow sshbuf_put_stringb(buf, NULL); ok markus@Damien Miller
2019-12-13use ssh-sk-helper for all security key signing operationsDamien Miller
This extracts and refactors the client interface for ssh-sk-helper from ssh-agent and generalises it for use by the other programs. This means that most OpenSSH tools no longer need to link against libfido2 or directly interact with /dev/uhid* requested by, feedback and ok markus@
2019-12-11add a note about the 'extensions' field in the signed objectDamien Miller
2019-12-10some more corrections for documentation problems spotted by Ron FrederickDamien Miller
document certifiate private key format correct flags type for sk-ssh-ed25519@openssh.com keys
2019-12-10loading security keys into ssh-agent used the extension constraintDamien Miller
"sk-provider@openssh.com", not "sk@openssh.com"; spotted by Ron Frederick
2019-12-10add security key types to list of keys allowed to act as CAs;Damien Miller
spotted by Ron Frederick
2019-12-10when acting as a CA and using a security key as the CA key, remind theDamien Miller
user to touch they key to authorise the signature.
2019-12-10chop some unnecessary and confusing verbiage from the security keyDamien Miller
protocol description; feedback from Ron Frederick
2019-12-06fix setting of $SSH_ASKPASS_PROMPT - it shouldn't be set when askingDamien Miller
passphrases, only when confirming the use of a key (i.e. for ssh-agent keys added with "ssh-add -c keyfile")
2019-12-06bring the __func__Damien Miller
2019-11-30tweak the Nd lines for a bit of consistency;Jason McIntyre
ok markus
2019-11-29perform hashing directly in crypto_hash_sha512() using libcrypto orDamien Miller
libc SHA512 functions rather than calling ssh_digest_memory(); avoids many dependencies on ssh code that complicate standalone use of ed25519, as we want to do in sk-dummy.so
2019-11-28improve the text for -A a little;Jason McIntyre
input from naddy and djm
2019-11-28reshuffle the text to read better;Jason McIntyre
input from naddy, djmc, and dtucker
2019-11-28tweak wordingDamien Miller
2019-11-27remove stray semicolon after closing brace of function;Damien Miller
from Michael Forney
2019-11-27Revert previous commit. The channels code still uses int in many placesDarren Tucker
for channel ids so the INT_MAX check still makes sense.
2019-11-27use error()+_exit() instead of fatal() to avoid running cleanupDamien Miller
handlers in child process; spotted via weird regress failures in portable