One way you could do that (it might require significant rework) is with the use of a differential /planetary gear system.
The planetary gear arrangement with the sun-planets-ring might lend itself more to the endeavour
i.e. attach:
- the red shaft to the sun
- the outer (blue) tube to the ring
- the gear to the planet carrier.
There are a lot of asterisks, i.e. what is the rpm on the output compared to the rpm of the shaft and the ring, however, since you did any information I assumed that you wanted to transfer power/torque.