Changeset f9665d1 for fedd


Ignore:
Timestamp:
Jan 7, 2009 9:33:18 AM (16 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
8bc5754
Parents:
ca24951
Message:

strict host key checking - having fedd ask for keys when contacting a new host is a no-no

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/experiment_control.py

    rca24951 rf9665d1  
    433433        """
    434434
    435         scp_cmd = [self.scp_exec, '-o', 'IdentitiesOnly yes', '-i',
     435        scp_cmd = [self.scp_exec, '-o', 'IdentitiesOnly yes',
     436                '-o', 'StrictHostKeyChecking yes', '-i',
    436437                self.ssh_privkey_file, file, "%s@%s:%s" % (user, host, dest)]
    437438        rv = 0
     
    454455        only logged.
    455456        """
    456         sh_str = "%s -o 'IdentitiesOnly yes' -i %s %s@%s %s" % \
     457        sh_str = ("%s -o 'IdentitiesOnly yes' -o " + \
     458                "'StrictHostKeyChecking yes' -i %s %s@%s %s") % \
    457459                (self.ssh_exec, self.ssh_privkey_file,
    458460                        user, host, cmd)
     
    521523        # The expinfo ssh command.  Note the identity restriction to use only
    522524        # the identity provided in the pubkey given.
    523         cmd = [self.ssh_exec, '-o', 'IdentitiesOnly yes', '-i',
     525        cmd = [self.ssh_exec, '-o', 'IdentitiesOnly yes', '-o',
     526                'StrictHostKeyChecking yes', '-i',
    524527                self.ssh_privkey_file, "%s@%s" % (user, host),
    525528                expinfo_exec, pid, eid]
Note: See TracChangeset for help on using the changeset viewer.