diff --git a/bundles/users/items.py b/bundles/users/items.py index 85a0777..9026e67 100644 --- a/bundles/users/items.py +++ b/bundles/users/items.py @@ -49,7 +49,7 @@ for username, attrs in node.metadata['users'].items(): if 'ssh_pubkey' in attrs: files[home + '/.ssh/authorized_keys'] = { - 'content': "\n".join(attrs['ssh_pubkey']), + 'content': '\n'.join(sorted(attrs['ssh_pubkey'])) + '\n', 'owner': username, 'mode': '0600', }