Mech rig help

Hello.
I’m trying to build a mech rig and I have got some problems.
Please look at my blend.
http://i.domaindlx.com/peddie26/foot.blend

My question is:
How do I link an armature to the middle cube controlling the foot in pose mode?

/Peddie

Simply parent the cube to a bone in the armature.

footrigged.blend