MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / revert

Method revert

keepercommander/plugins/ssh/ssh.py:47–49  ·  view source on GitHub ↗

Revert password change over SSH

(self, record, new_password)

Source from the content-addressed store, hash-verified

45 )
46
47 def revert(self, record, new_password):
48 """Revert password change over SSH"""
49 return rotate_ssh(self.host, self.port, self.login, new_password, self.password, revert=True)
50
51
52def rotate_ssh(host, port, user, old_password, new_password, timeout=5, revert=False):

Callers 1

rotate_passwordFunction · 0.45

Calls 1

rotate_sshFunction · 0.85

Tested by

no test coverage detected