Access to PAN with '#' in the password is failing due to
https://live.paloaltonetworks.com/t5/Management-Articles/XML-API-Issue-with-passwords-containing-special-character-Unable/ta-p/146309
The '#' needs to be replaced with '%23' when entering it in the HTTPs credentials.
For example: "pass#ord" should be entered as "pass%23ord"
The SSH password should be entered as-is with the '#' (i.e. "pass#ord")