Please note that the problem only occurs when the remote path ends with syntax that denotes the target home directory  -  "...:" or "...:~").

Ie, the shell start problem does not happen if you allow something like emacs' "cd" function to take the remote path and fill in the explicit home directory path. That's specifically why I set the starting buffer's default-directory to the target path, rather than using CD.

Ken