From 8979c546bd343c9d68f42bf1215cb1721a7c3206 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 29 Jan 2021 09:09:52 +0100 Subject: op-mode: ssh: support generating client keypair vyos@vyos:~$ generate ssh client-key /config/auth/id_rsa_rpki Generating public/private rsa key pair. Your identification has been saved in /config/auth/id_rsa_rpki. Your public key has been saved in /config/auth/id_rsa_rpki.pub. The key fingerprint is: SHA256:aBMN1F6lINh4CbG/fuEVReCpbZr3U0/KdorWY6iGfvw vyos@vyos The key's randomart image is: +---[RSA 2048]----+ | oB+o. .+o | | o.++.o.o. | | ......+. | | . o.o. | | = S o. | | . o.+. . .| | ..o=. = + | | . +.+.+.B o| | .o.o.+E+.+ | +----[SHA256]-----+ --- op-mode-definitions/generate-ssh-server-key.xml.in | 24 ++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/op-mode-definitions/generate-ssh-server-key.xml.in b/op-mode-definitions/generate-ssh-server-key.xml.in index a6ebf1b78..86bb1b1bd 100644 --- a/op-mode-definitions/generate-ssh-server-key.xml.in +++ b/op-mode-definitions/generate-ssh-server-key.xml.in @@ -2,14 +2,30 @@ - Generate an object + Generate an object/key - + - Regenerate the host SSH keys and restart the SSH server + Generate SSH related keypairs - ${vyos_op_scripts_dir}/generate_ssh_server_key.py + + + + Re-generate SSH host keys and restart SSH server + + ${vyos_op_scripts_dir}/generate_ssh_server_key.py + + + + Re-generate SSH client keypair + + <filename> + + + ssh-keygen -t rsa -f "$4" -N "" + + -- cgit v1.2.3