Help with SSH

Hi
When I run a script with the few lines below, it completes the remote script, but does not make it to EOF!!! The prompt does not come back unless I hit <Enter>. Is there a way to avoid that?

sudo su - user << EOF
ssh remote_server "/home/user/remote_script.sh"
EOF

Are you sure the remote_script is not waiting for ENTER ?

Not at all... I can exeute the commands manually and they work fine.