How to establish remote connection to inranet server in ruby

Hi ,

I have my application on two different servers

  1. text drive server

2 intranet server located at some place.

Right now i am using VPN to access my application that is on intranet
server.

Now using ruby code i need to establish remote connection to intranet
server from my text drive server and want to access my application on
intranet server and make file transfer.

Could anyone tell me how could i do this ?

Thanks,

Piyush.