I’m trying to implement a python script that executes local bash scripts or simple commands on remote CyberArk machines. Here is my code: The main problem is that i get this CyberArk authentication error most of the times, but not always, so it’s kind of random and i don’t know why: In this case the ssh exit code is 255,