Ssh fixes

fix ssh errcode regression

try harder on keyscan/scp


`check_output` method was introduced in python 2.7, so this will break CLI if running on a python2.6, you should handle this case with a try except ImportError here and see  how to handle exec_output method to stil work or at least fail silently.