diff options
Diffstat (limited to 'docs/configuration/service')
| -rw-r--r-- | docs/configuration/service/dhcp-server.rst | 2 | ||||
| -rw-r--r-- | docs/configuration/service/ssh.rst | 30 | 
2 files changed, 32 insertions, 0 deletions
diff --git a/docs/configuration/service/dhcp-server.rst b/docs/configuration/service/dhcp-server.rst index a6f64aa4..943e8241 100644 --- a/docs/configuration/service/dhcp-server.rst +++ b/docs/configuration/service/dhcp-server.rst @@ -574,6 +574,7 @@ be created. The following example explains the process.  **Example:**  * IPv6 address ``2001:db8::101`` shall be statically mapped +* IPv6 prefix ``2001:db8:0:101::/64`` shall be statically mapped  * Host specific mapping shall be named ``client1``  .. hint:: The identifier is the device's DUID: colon-separated hex list (as @@ -585,6 +586,7 @@ be created. The following example explains the process.  .. code-block:: none    set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 ipv6-address 2001:db8::101 +  set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 ipv6-prefix 2001:db8:0:101::/64    set service dhcpv6-server shared-network-name 'NET1' subnet 2001:db8::/64 static-mapping client1 identifier 00:01:00:01:12:34:56:78:aa:bb:cc:dd:ee:ff  The configuration will look as follows: diff --git a/docs/configuration/service/ssh.rst b/docs/configuration/service/ssh.rst index 6b09d40d..40ec62f5 100644 --- a/docs/configuration/service/ssh.rst +++ b/docs/configuration/service/ssh.rst @@ -156,3 +156,33 @@ Operation    Two new files ``/config/auth/id_rsa_rpki`` and    ``/config/auth/id_rsa_rpki.pub``    will be created. + +.. opcmd:: generate public-key-commands name <username> path <location> + +   Generate the configuration mode commands to add a public key for +   :ref:`ssh_key_based_authentication`. +   ``<location>`` can be a local path or a URL pointing at a remote file. + +   Supported remote protocols are FTP, HTTP, HTTPS, SCP/SFTP and TFTP. + +  Example: + +  .. code-block:: none + +    alyssa@vyos:~$ generate public-key-commands name alyssa path sftp://example.net/home/alyssa/.ssh/id_rsa.pub +    # To add this key as an embedded key, run the following commands: +    configure +    set system login user alyssa authentication public-keys alyssa@example.net key AAA... +    set system login user alyssa authentication public-keys alyssa@example.net type ssh-rsa +    commit +    save +    exit + +    ben@vyos:~$ generate public-key-command user ben path ~/.ssh/id_rsa.pub +    # To add this key as an embedded key, run the following commands: +    configure +    set system login user ben authentication public-keys ben@vyos key AAA... +    set system login user ben authentication public-keys ben@vyos type ssh-dss +    commit +    save +    exit  | 
