Comment 2 for bug 1786193

Revision history for this message
Tytus Kurek (tkurek) wrote :

Andres,

My use case is that I have to create around 200 accounts in MaaS and import SSH keys for them from central repository. Of course the import could be done by users themselves, but if I have ~10 MaaS instances this becomes problematic.

From my point of the features that would be nice to have would be:

1) Specify ssh key during account creation, for example:

maas maas users create username=tkurek <email address hidden> password=tkurek is_superuser=1 key="<ssh key>"

maas maas users create username=tkurek <email address hidden> password=tkurek is_superuser=1 key=lp:tkurek

2) Specify user for which the SSH key is being imported:

maas maas sshkeys create key="<ssh key>" user=tkurek