I believe the only way to do this without jailbreaking is to buy Apple's $80 cable made for communicating over serial.