ssh-keygen unable to verify key “unknown option — Y”


This Content is from ServerFault. Question asked by Christian Galo

I am trying to verify my public key on a Gitea instance. Gitea provides a token for me to generate a signature; The instructions say:

echo -n 'TOKEN_PROVIDED' | ssh-keygen -Y sign -n gitea -f PATH_TO_PUBLIC_KEY

When I do this, ssh-keygen replies with

unknown option -- Y

I’ve been able to verify before on my personal computer, but it seems like ssh-keygen on the server I am logged in at has a different ssh-keygen as it seems to be missing that flag.

  • Should I be using a different version of ssh-keygen?
  • How else could I verify with my current ssh-keygen version?

Specific stack info (although I hope the answers are general enough to be applicable elsewhere):

  • Debian 10


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from serverfault, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?