diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:59:46 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-01-29 10:59:46 +0100 |
commit | d0ad9cf4a02cee44671fe6eaea2c5c5e025177b5 (patch) | |
tree | 1d862953a8fb36a3e9c01026451e91fa86738ee0 /docs | |
parent | 44647b95cb474a0fe19314540f04858c92a80074 (diff) | |
download | vyos-documentation-d0ad9cf4a02cee44671fe6eaea2c5c5e025177b5.tar.gz vyos-documentation-d0ad9cf4a02cee44671fe6eaea2c5c5e025177b5.zip |
ssh: add op-mode commands
Diffstat (limited to 'docs')
-rw-r--r-- | docs/configuration/service/ssh.rst | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/configuration/service/ssh.rst b/docs/configuration/service/ssh.rst index f7541a70..f6efe6d4 100644 --- a/docs/configuration/service/ssh.rst +++ b/docs/configuration/service/ssh.rst @@ -108,3 +108,50 @@ Configuration .. cfgcmd:: set service ssh vrf <name> Specify name of the :abbr:`VRF (Virtual Routing and Forwarding)` instance. + +Operation +========= + +.. opcmd:: restart ssh + + Restart the SSH daemon process, the current session is not affected, only the + background daemon is restarted. + +.. opcmd:: generate ssh server-key + + Re-generated the public/private keyportion which SSH uses to secure + connections. + + .. note:: Already learned known_hosts files of clients need an update as the + public key will change. + +.. opcmd:: generate ssh client-key /path/to/private_key + + Re-generated a known pub/private keyfile which can e.g. used to connect to + other services (RPKI cache). + + Example: + + .. code-block:: none + + 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:XGv2PpdOzVCzpmEzJZga8hTRq7B/ZYL3fXaioLFLS5Q cpo@LR1.wue3 + The key's randomart image is: + +---[RSA 2048]----+ + | oo | + | ..o | + | . o.o.. o.| + | o+ooo o.o| + | Eo* =.o | + | o = +.o*+ | + | = o *.o.o| + | o * +.o+.+| + | =.. o=.oo| + +----[SHA256]-----+ + + Two new files ``/config/auth/id_rsa_rpki`` and ``/config/auth/id_rsa_rpki.pub`` + will be created. |