Hey there, I unfortunately have a big issue on my hands and am currently locked out of about 70 VyOS servers I have set up. I wrote a script to go through and mass change my VyOS passwords. The passwords contained a ‘$’ in the string somewhere in there.
After some testing of not being able to log in, I found that if the ‘$’ is not the last character, you are unable to log into VyOS.
Example:
test123$ will work fine
test$123 will break the login, and not allow you to log in.
Both passwords will work fine as far as committing and saving the config. But when you go to log in, you cannot.
I’d love to figure out if it’s possible to figure out what happens to the password with the ‘$’, how it affects it. any ideas?
Hey chris, thanks for the suggestion. Unfortunately just removing the ‘$’ from the password does not allow me to log in. I also tried escaping the $ at the login prompt, still nothing. Good to know that they can be escaped when setting the password initially, though. Unfortunately I’m currently locked out of all these servers. I know there is the password reset in the GRUB menu, but a lot of these servers are production and I really don’t want to take them down right now.
Any other idea what vyos might be doing to the password string if it contains an un-escaped ‘$’?
Wow, that did the trick… unbelievable lol. Thank you chris, appreciate the help immensely! This will save me many hours.
I wish there was some sort of proper documentation either in the wiki, on here, or even on vyos itself to warn about the use of $ in the password. Would have saved myself and any future users a big headache