code: def scp(cls, vm_id, login, identity, local_file, remote_file):
          
          cmd = ['scp']
          if identity:
              cmd.extend(('-i', identity,))
  
          version, ip_addr = cls.vm_ip(vm_id)
          if version == 6:
              ip_addr = '[%s]' % ip_addr
  
          cmd.extend((local_file, '%s@%s:%s' %
                      (login, ip_addr, remote_file),))
          cls.echo('Running %s' % ' '.join(cmd))
          for _ in range(5):
              ret = cls.execute(cmd, False)
              if ret:
                  break
              time.sleep(.5)
          return ret
docs: Copy file to remote VM.