Configuring Laravel Envoy with SSH

Posted 8 months ago by nickdavies07

Hi

I'm attempting to configure Envoy to connect via SSH to my server. The production server is at 77.72.0.74.

I have an SSH key available to access the server from my machine - the key is located in Z:\ .ssh\id_rsa

I've set up an ssh config file to allow me to access the server by using ssh clpt and this works successfully, however when I add the host to Envoy.blade.php I get This task did not complete successfully on one of your servers.

Envoy.blade.php

@servers(['remote' => 'clpt', 'local' => ''])

@task('test', ['on' => 'remote'])
    echo "testing...";
@endtask

Z:.ssh\config

Host clpt
    HostName 77.72.0.74
    Port 722
    User nickdavies

Command Line

$ envoy run test
This task did not complete successfully on one of your servers.

Any advice?

Please sign in or create an account to participate in this conversation.