From a48fd8bbc1c3cd5e48ace9db319ed2d450da507e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zolt=C3=A1n=20Felleg?= Date: Wed, 2 Dec 2020 19:48:11 +0100 Subject: [PATCH 1/1] Added doc.txt. --- doc.txt | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 doc.txt 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 -- 2.54.0