def AuthenticateVm(self):
    if not self.is_static and not self.has_private_key:
      self.RemoteHostCopy(vm_util.GetPrivateKeyPath(),
                          REMOTE_KEY_PATH)
      with vm_util.NamedTemporaryFile() as tf:
        tf.write('Host *\n')
        tf.write('  StrictHostKeyChecking no\n')
        tf.close()
        self.PushFile(tf.name, '~/.ssh/config')

      self.has_private_key = True
Authenticate a remote machine to access all peers.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_virtual_machine.py/BaseLinuxMixin.AuthenticateVm