SSH tunnel does not “hang” unless there is a connectivity issue.
When you claim the server
curl -X POST 'http://127.0.0.1:32400/myplex/claim?token=PASTE_TOKEN_HERE'
It will take 15-30 seconds for PMS and Plex.tv to handshake and establish new credentials. curl will wait until PMS replies.
When PMS is complete with its Plex.tv exchange, you will get
- An error code
-or- - A block of XML flags. ( These are your account feature flags )
This is predicated on previously clearing out PlexOnlineUsername, PlexOnlineMail, PlexOnlineToken, and PlexOnlineHome from Preferences.xml (with PMS stopped while editing)