ytti / oxidized

Oxidized is a network device configuration backup tool. It's a RANCID replacement!
Apache License 2.0
2.81k stars 928 forks source link

passwords with special characters (dollar sign and space) #3150

Closed JoeyChen-NTUT closed 1 month ago

JoeyChen-NTUT commented 6 months ago

I just read follow issue

https://github.com/ytti/oxidized/issues/964

but in my case my password such like $P@$$w0rd 123

I just rewrite config to \$P@\$\$w0rd\ 123

but still got authentication failed

how to correct it thanks

marmack95 commented 6 months ago

I don't have problems with '$'. Try to espace only space.

As space is a separator, try to replace space with encoded character '\x00'.

JoeyChen-NTUT commented 6 months ago

I just remove space in my password but still not work with dollar sign

marmack95 commented 6 months ago

Enable debug and check it. It could be a problem of prompt, for example (https://github.com/ytti/oxidized/issues/3128)

robertcheramy commented 1 month ago

Enclose your password within single quotes:

---
username: oxidized
password: '$P@$$w0rd 123'