def ssh_upload(self, possible_firmwares, ip):
        firmware = _firmware_to_upload(self.bii, possible_firmwares)
        self.bii.user_io.out.writeln('Uploading...')
        if not OSInfo.is_win():
            scp_command = "scp %s.hex root@%s:/tmp/" % (firmware, ip)
            ssh_command = "ssh root@%s /usr/bin/run-avrdude /tmp/%s.hex -q -q" % (ip, firmware)
            bii_paths = self.bii.bii_paths
            self._execute_command(scp_command, bii_paths.bin)
            self._execute_command(ssh_command)
Uploading the firmware to Arduino
dataset/ETHPy150Open biicode/client/dev/hardware/arduino/arduino.py/Arduino.ssh_upload