there are a few tricks for managing local and remote connection info.
We just released a new extension called dynamic connections:
that will allow you to create one connection file with both the local and remote info in it and it will use the correct info based on the URL.
Outside of that, you would it the local connection and insert the remote details, then upload the connection ot the remote server. Once uploaded, change the permissions on the remote server to allow for read only.
Then change the local connection file back to using the local information
and dont upload it it the server again.