Correct me if I am wrong, but PKCS8 is format to store private key info. It could be binary-enoded (DER) or Base64 encoded (PEM).
man ssh-config
-m key_format
Specify a key format for the -i (import) or -e (export) conver‐
sion options. The supported key formats are: “RFC4716” (RFC
4716/SSH2 public or private key), “PKCS8” (PEM PKCS8 public
key) or “PEM” (PEM public key). The default conversion format
is “RFC4716”.
I am confused with "PKCS8 Public Key" (while RFC-5208 is "Private-Key Information Syntax Specification Version") but I also can't understand what is "PEM public key" here? PKCS8 could be PEM or DER. What does it mean?
SubjectPublicKeyInfostructure defined by X.509 to handle multiple PKC algorithms, which is more conveniently available in tools.ietf.org/html/rfc5280#section-4.1.2.7 with the details mostly in rfc3279. This format is ASN.1 based, as is 'PEM' which is PKCS#1 as you found, while rfc4716 is based on the XDR-like format used in SSH protocol. $\endgroup$