How do I 'pause' in a .command-script?
In this solution we need to tell ssh to create a pseudo terminal with -tt then use a heredoc to send the commands to the remote location.

    ssh -tt user@domain.com &lt;&lt;EOF
    cd /var/www/website/
    git pull
    logout
    EOF