linux ssh Certificate‐Based Authentication - ghdrako/doc_snipets GitHub Wiki

ssh-copy-id username@remote_host
ssh-copy-id -p 3022 [email protected]

or

Configure sshd to trust certyficates signed by user_ca.pub

/etc/ssh/sshd_config:

TrustedUserCAKeys /etc/ssh/user_ca.pub
systemctl restart sshd