Closed TafkaMax closed 7 months ago
I think I might be having the same issue as this.
I did the same debug options as specified before and got this:
0: config system admin
0: edit "read-only-admin"
0: unset ssh-public-key1
-651: set ssh-public-key1 "redacted@example.com"
So it removed the key-type and it also removed the key, which left it with the good old comment in the end.
IMHO just allow the module to paste whatever the input the user wants and please do not try to split it in any way.
Doing it via CLI manually worked.
Trying to split the user input is not a good idea, if that is being done here.
set ssh-public-key1 "ssh-rsa BLAAH redacted@example.com"
Even when splitting up the SSH-key string on the whitespaces I am not able to get it working, please fix this functionality.
Hi @TafkaMax ,
Thank you for raising this issue, and sorry for the inconvenience, I can reproduce this problem, I have reported it to the development team for fixing, Thank you for your debug info that is helpful!
Thanks, Maxx
I am having an issue where I can't add ssh-keys to user via
fortiswitch_system_admin
The code is the following:
The output of the lookup is OK aswell. "ssh-rsa AA....== comment"