It is probably because the ssh key on your remote server requires a password.
If you change the Envoy.blade.php
to perform some other task you should be able to establish whether you are connecting to your remote correctly.
@servers(['web' => 'user@domain.com'])
@task('deploy')
cd /path/to/site
git status
@endtask
Should return something like:
[user@domain.com]: On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
If you are connecting using a Mac or Linux you probably don't have to enter your password because your terminal is using ssh-agent
which silently handles your authentication.
Wikipedia article on ssh-agent
When connecting over ssh, ssh-agent isn't running and the script is being prompted for a password which is where it is failing.
To get around this you could to generate a new key on the remote machine that doesn't use a password.
If you want to restrict the ssh key to a single repository on GitHub have a look at deploy keys