The OpsMgr Connector connected to %1, but the connection was closed immediately after authentication occured. The most likely ...

The OpsMgr Connector connected to %1, but the connection was closed immediately after authentication occured.  The most likely cause of this error is that the agent is not authorized to communicate with the server, or the server has not received configuration.  Check the event log on the server for the presence of 20000 events, indicating that agents which are not approved are attempting to connect.