You want to SSH into VM via VM? Where's it connecting from / to?
Laravel SSH facade and Homestead
I'm working on a deployment script which will use Laravel's remote.php class to pull from Git, run migrations, etc. On production, this is all working. Using app/config/remote.php, I can successfully connect to the remote server and run something like the following in an Artisan command:
$commands[] = "php artisan migrate";
SSH::into('production')->run(
$commands
);
The problem here is that I want to run this against my Homestead box in order to test before I do this on production (for obvious reasons!), but I can't seem to figure out what the local version of the connection should be.
'local' => array(
'host' => 'localhost:2222',
'username' => 'vagrant ',
'password' => ' ',
'key' => '',
'keyphrase' => '',
'root' =>'/home/vagrant',
),
What is the correct configuration for this? I think it's restricting SSH to only use the RSA public key, but in order to test a deploy script I need to be able to connect using the SSH::into("local") code.
Any clues?
Please or to participate in this conversation.