Hello,
You need to escape " with backslash \:
[edit protocols isis]
regress@VMX# set level 2 authentication-key test\"123
[edit protocols isis]
regress@VMX# commit
commit complete
[edit protocols isis]
regress@VMX# show
level 1 disable;
level 2 {
authentication-key "$9$gN4UHf5F/A0z3/CtpB17-dsoJ"; ## SECRET-DATA
You can reverse-decrypt the above key online to be 100% sure. Here is the output from one of such tools:
https://www.m00nie.com/juniper-type-9-password-tool/
You chose to decrypt
Your original string was $9$gN4UHf5F/A0z3/CtpB17-dsoJ
Output text is test"123
HTH
Thx
Alex