diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-09-09 12:55:06 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-09-09 12:55:06 -0400 |
commit | 67300d1928eb8021b27be3d7e6b85839887714dd (patch) | |
tree | d369151441f8be93127d47ed721ac7770db3c55f | |
parent | 971ed9bbb320435a6353bb97efeea263d4bb2b96 (diff) | |
download | rpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.tar.gz rpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.tar.xz rpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.zip |
Load up host keys
-rwxr-xr-x | rpmbuild-remote.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rpmbuild-remote.py b/rpmbuild-remote.py index 04c355e..65b8913 100755 --- a/rpmbuild-remote.py +++ b/rpmbuild-remote.py @@ -147,6 +147,7 @@ def get_rpmbuild_results(session, dest, sout, serr): def execute_jobs(opts, system, jobs): session = paramiko.SSHClient() + session.get_host_keys().load(os.path.expanduser('~/.ssh/known_hosts')) LOG.info("Connecting to %(user)s@%(host)s:%(port)d" % system) session.connect(system['host'], port=system['port'], username=system['user'], key_filename=system['ssh_key']) |