summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-09-09 12:55:06 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-09-09 12:55:06 -0400
commit67300d1928eb8021b27be3d7e6b85839887714dd (patch)
treed369151441f8be93127d47ed721ac7770db3c55f
parent971ed9bbb320435a6353bb97efeea263d4bb2b96 (diff)
downloadrpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.tar.gz
rpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.tar.xz
rpmbuild-remote-67300d1928eb8021b27be3d7e6b85839887714dd.zip
Load up host keys
-rwxr-xr-xrpmbuild-remote.py1
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'])