diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-09-01 21:52:20 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-09-01 21:52:20 +0200 |
commit | 514da738173696c70440c959b9d7ec9afd77fbae (patch) | |
tree | ce80b19e9917a3341a6b5fa5e47aa8c0eeea0aea /interface-definitions | |
parent | bbe0deda9bfcfd4116c44b42156a628de8400b48 (diff) | |
download | vyos-1x-514da738173696c70440c959b9d7ec9afd77fbae.tar.gz vyos-1x-514da738173696c70440c959b9d7ec9afd77fbae.zip |
login: T1948: add missing ssh-public key name regex
Diffstat (limited to 'interface-definitions')
-rw-r--r-- | interface-definitions/system-login.xml.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/interface-definitions/system-login.xml.in b/interface-definitions/system-login.xml.in index 4bfe82268..f4613b8a2 100644 --- a/interface-definitions/system-login.xml.in +++ b/interface-definitions/system-login.xml.in @@ -44,6 +44,9 @@ <tagNode name="public-keys"> <properties> <help>Remote access public keys</help> + <constraint> + <regex>^[-_a-zA-Z0-9@]+$</regex> + </constraint> <valueHelp> <format>txt</format> <description>Key identifier used by ssh-keygen (usually of form user@host)</description> |