The -d option to ssh-add does not accept '-' as an alias for stdin. $ cat id_ed25519_test | ssh-add -d - Bad key file -: No such file or directory
On most platforms you can do "cat id_ed25519_test | ssh-add -d /dev/stdin".
Created attachment 3416 [details] Implement support for "ssh-add -d -" This adds support for "ssh-add -d -". It allows multiple keys to appear on stdin, one per line. This allows handy recipes like deleting all but certificates "ssh-add -L | grep -v 'cert-v01@openssh.com' | ssh-add -d -"
Created attachment 3418 [details] regress tests regress tests for previous
This has been committed and will be in the openssh-8.4 release, due in a few months
Mass close of all bugs fixed in 8.4 release.