Creating a connection host to host with ruby