def passwd(self, newpass, oldpass=None):
        self._intf.send("passwd\r")
        self._intf.expect("New")
        self._intf.send("%s\r" % (newpass,))
        self._intf.expect("Retype")
        self._intf.send("%s\r" % (newpass,))
        self._intf.wait_for_prompt()
Change the password
dataset/ETHPy150Open kdart/pycopia/QA/pycopia/QA/ssh_controller.py/ShellController.passwd