From: Zoltán Felleg Date: Wed, 2 Dec 2020 18:48:11 +0000 (+0100) Subject: Added doc.txt. X-Git-Url: http://git.useribm.hu/?a=commitdiff_plain;h=a48fd8bbc1c3cd5e48ace9db319ed2d450da507e;p=user-ssh.git Added doc.txt. --- a48fd8bbc1c3cd5e48ace9db319ed2d450da507e diff --git a/doc.txt b/doc.txt new file mode 100644 index 0000000..32191f1 --- /dev/null +++ b/doc.txt @@ -0,0 +1,43 @@ +user CA generation: + ssh-keygen -t ed25519 -C user-CA -f user-CA + +user CA setup (as root on ssh servers): + copy user-CA.pub to /etc/ssh + echo "TrustedUserCAKeys /etc/ssh/user-CA.pub" >/etc/ssh/sshd_config.d/99-user-CA.conf + +user key generation: + ssh-keygen -t ed25519 -C -f + where + key comment and file: username the key belongs to + +user key signing: + ssh-keygen -I \ + -n \ + -s \ + -V \ + [-z ] \ + + where + certificate identity: username the key belongs to + principals: comma (and no space) separated target users + +user key passphrase change: + ssh-keygen -p -f + +---------------- + +host CA generation: + ssh-keygen -t ed25519 -C host-CA -f host-CA + +host CA setup (as root on ssh clients): + echo "@cert-authority *.usr.user.hu " >/etc/ssh/ssh_known_hosts + +host key signing (as root on ssh servers): + ssh-keygen -h \ + -I \ + -n \ + -s \ + /etc/ssh/ssh_host_ed25519_key.pub + +host certificate setup (as root on ssh servers): + echo "HostCertificate /etc/ssh/ssh_host_ed25519_key-cert.pub" >/etc/ssh/sshd_config.d/99-host-cert.conf