Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How do you handle errors raised in paramiko? (Python)
- self.ssh = paramiko.SSHClient()
- self.ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- try:
- self.ssh.connect(self.hostname, username=self.username, password=self.password)
- except SSHException:
- #do something
Add Comment
Please, Sign In to add comment