diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-07 09:37:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-07 09:37:20 +0200 |
commit | 9827b090d3eced20891520681f6b42531234e2f5 (patch) | |
tree | 0ae332665703abf40fb9c4c40cea94e99704f855 | |
parent | c5c5e5884092d215e717e29b87c201d33a887b03 (diff) | |
parent | 1b93c11014125863c1f5baa2e929893c9195a7a5 (diff) | |
download | vyos-documentation-9827b090d3eced20891520681f6b42531234e2f5.tar.gz vyos-documentation-9827b090d3eced20891520681f6b42531234e2f5.zip |
Merge pull request #613 from plett/T971
T971 Document the use of ssh key options
-rw-r--r-- | docs/configuration/system/login.rst | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/configuration/system/login.rst b/docs/configuration/system/login.rst index 09b6e68b..89ef7e2f 100644 --- a/docs/configuration/system/login.rst +++ b/docs/configuration/system/login.rst @@ -74,6 +74,14 @@ The third part is simply an identifier, and is for your own reference. .. note:: You can assign multiple keys to the same user by using a unique identifier per SSH key. +.. cfgcmd:: set system login user <username> authentication public-keys + <identifier> options <options> + + Set the options for this public key. See the ssh ``authorized_keys`` man page + for details of what you can specify here. To place a ``"`` character in the + options field, use ``"``, for example ``from="10.0.0.0/24"`` + to restrict where the user may connect from when using this key. + .. cfgcmd:: loadkey <username> <location> **Deprecation notice:** ``loadkey`` has been deprecated in favour of @@ -96,12 +104,14 @@ Example ------- In the following example, both `User1` and `User2` will be able to SSH into -VyOS as user ``vyos`` using their very own keys. +VyOS as user ``vyos`` using their very own keys. `User1` is restricted to only +be able to connect from a single IP address. .. code-block:: none set system login user vyos authentication public-keys 'User1' key "AAAAB3Nz...KwEW" set system login user vyos authentication public-keys 'User1' type ssh-rsa + set system login user vyos authentication public-keys 'User1' options "from="192.168.0.100"" set system login user vyos authentication public-keys 'User2' key "AAAAQ39x...fbV3" set system login user vyos authentication public-keys 'User2' type ssh-rsa |