Skip to content

Commit 516b2df

Browse files
Added new SSH key type.
Added the sk-ssh-ed25519 SSH key type.
1 parent 064cb64 commit 516b2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/functions/accounts_ssh_authorized_keys_line_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
end
1717

1818
def accounts_ssh_authorized_keys_line_parser_string(str)
19-
matched = str.match(%r{((sk-ecdsa-|ssh-|ecdsa-)[^\s]+)\s+([^\s]+)\s+(.*)$})
19+
matched = str.match(%r{((sk-ssh-ed25519-|sk-ecdsa-|ssh-|ecdsa-)[^\s]+)\s+([^\s]+)\s+(.*)$})
2020
raise ArgumentError, 'Wrong Keyline format!' unless matched && matched.length == 5
2121
options = str[0, str.index(matched[0])].rstrip
2222
[options, matched[1], matched[3], matched[4]]

0 commit comments

Comments
 (0)