From owner-freebsd-questions@freebsd.org Tue Jan 5 21:57:04 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 534654CC3A9 for ; Tue, 5 Jan 2021 21:57:04 +0000 (UTC) (envelope-from mike@sentex.net) Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [IPv6:2607:f3e0:0:3::19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "pyroxene.sentex.ca", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D9RDH4MwFz3Nhv for ; Tue, 5 Jan 2021 21:57:03 +0000 (UTC) (envelope-from mike@sentex.net) Received: from [IPv6:2607:f3e0:0:4:a115:9ec6:4545:cec5] ([IPv6:2607:f3e0:0:4:a115:9ec6:4545:cec5]) by pyroxene2a.sentex.ca (8.15.2/8.15.2) with ESMTPS id 105Lv2Gb006776 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO) for ; Tue, 5 Jan 2021 16:57:02 -0500 (EST) (envelope-from mike@sentex.net) To: FreeBSD Questions From: mike tancsa Subject: OpenSSH and U2F Message-ID: <50bc8798-1699-5db9-11df-a16ef8abd66f@sentex.net> Date: Tue, 5 Jan 2021 16:57:03 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Rspamd-Queue-Id: 4D9RDH4MwFz3Nhv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:3::19 as permitted sender) smtp.mailfrom=mike@sentex.net X-Spamd-Result: default: False [-2.00 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[mike]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f3e0:0:3::19:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; HFILTER_HELO_IP_A(1.00)[pyroxene2a.sentex.ca]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f3e0:0:3::19:from:127.0.2.255]; HFILTER_HELO_NORES_A_OR_MX(0.30)[pyroxene2a.sentex.ca]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[sentex.net]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jan 2021 21:57:04 -0000 Hi all, =C2=A0=C2=A0=C2=A0 I am trying to get my Yubi Key working on FreeBSD like= I do on MacOS and OpenSSH.=C2=A0 On it, its super easy to generate and use the key as 2= FA auth. On the MAC and Linux, all I need to do is ssh-keygen -t ecdsa-sk to generate the key pair. I then copy over the public key and am then able to ssh to another host using the key pair with just a tap of the Yubico key. e.g https://cryptsus.com/blog/how-to-configure-openssh-with-yubikey-security-= keys-u2f-otp-authentication-ed25519-sk-ecdsa-sk-on-ubuntu-18.04.html shows it on Linux which is the same as on my MAC. On FreeBSD, I need to enter a PIN via the security/yubikey-agent.=C2=A0 P= lus I need to have QT / and some Xlibs installed as I am prompted for a PIN via PINENTRY.=C2=A0 Is there a way to do it so that I just touch the key = as opposed to having to use the PIN ?=C2=A0 I would even prefer PIN and physically touching the key if possible as opposed to JUST the PIN =C2=A0=C2=A0=C2=A0 ---Mike