diff options
author | 2019-11-25 00:57:27 +0000 | |
---|---|---|
committer | 2019-11-25 00:57:27 +0000 | |
commit | 093f10944f69e4e6e429b0b0fcbb2c0de873e777 (patch) | |
tree | 133219080c617c8a6dd70265076572800f17950f /usr.bin/ssh/ssh-keygen.c | |
parent | allow "ssh-keygen -x no-touch-required" when generating a security key (diff) | |
download | wireguard-openbsd-093f10944f69e4e6e429b0b0fcbb2c0de873e777.tar.xz wireguard-openbsd-093f10944f69e4e6e429b0b0fcbb2c0de873e777.zip |
Print a key touch reminder when generating a security key. Most keys
require a touch to authorize the operation.
Diffstat (limited to 'usr.bin/ssh/ssh-keygen.c')
-rw-r--r-- | usr.bin/ssh/ssh-keygen.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/ssh/ssh-keygen.c b/usr.bin/ssh/ssh-keygen.c index 002d3161ffc..28e7240c1cd 100644 --- a/usr.bin/ssh/ssh-keygen.c +++ b/usr.bin/ssh/ssh-keygen.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-keygen.c,v 1.372 2019/11/25 00:55:58 djm Exp $ */ +/* $OpenBSD: ssh-keygen.c,v 1.373 2019/11/25 00:57:27 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -3272,6 +3272,11 @@ main(int argc, char **argv) switch (type) { case KEY_ECDSA_SK: case KEY_ED25519_SK: + if (!quiet) { + printf("You may need to touch your security key " + "to authorize key generation.\n"); + } + fflush(stdout); if (sshsk_enroll(type, sk_provider, cert_key_id == NULL ? "ssh:" : cert_key_id, sk_flags, NULL, &private, NULL) != 0) |