$ brew install openssh $ /usr/local/Cellar/openssh/8.8p1_2/bin/ssh-keygen -t ecdsa-sk //需要手动调用下brew安装的ssh-keygen Generating public/private ecdsa-sk key pair. You may need to touch your authenticator to authorize key generation. Enter PIN for authenticator: You may need to touch your authenticator (again) to authorize key generation. Enter file in which to save the key (/Users/example/.ssh/id_ecdsa_sk): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /Users/example/.ssh/id_ecdsa_sk Your public key has been saved in /Users/example/.ssh/id_ecdsa_sk.pub The key fingerprint is: SHA256:/tpCT+qjX8gP4TOxwiNLjYe794gRKUUOPxcQhy9AjJw [email protected] The key's randomart image is: +-[ECDSA-SK 256]--+ |.++ ++o | |.Eo=.. . | | .=.. | | ..+. | | . o. S | | . * +.=. | | * *.X+. | | . B.++O. | | =oo==++ | +----[SHA256]-----+
➜ gpg --edit-key 506E61294EEFA189051358B8F2AFB96ECBE9933F gpg (GnuPG) 2.3.3; Copyright (C) 2021 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.