mwilliamson / spur.py

Run commands and manipulate files locally or over SSH using the same interface
BSD 2-Clause "Simplified" License
267 stars 37 forks source link

Can client.load_system_host_keys() be configurable? #32

Closed joshbaptiste closed 8 years ago

joshbaptiste commented 9 years ago

Where I work there are many hosts that are running as fail over nodes and we consistently have hosts/key mismatch errors that we have to ignore to allow our scripts to work. These errors are causing our spur based scripts to fail prematurely in ssh.py here.... 252 client.load_system_host_keys() Can the load_system_host_keys() method be set as a configurable parameter?

mwilliamson commented 9 years ago

Can the load_system_host_keys() method be set as a configurable parameter?

Sounds sensible to me. I probably won't have time to look at this for a few days at least, so feel free to send in a pull request in the meantime if you want.

mwilliamson commented 8 years ago

I've added a load_system_host_keys argument to SshShell in the latest version (0.3.15), let me know if that doesn't work for you.