Friday, March 10, 2017

Laravel 5.1 SSH - Unable to connect to remote server

I followed everthig in this link here :

Laravel 5.1 SSH

https://laravelcollective.com/docs/5.1/ssh

This what I have config

'connections' => [
    'production' => [
        'host'      => '45.55.88.88',
        'username'  => 'root',
        'password'  => '',
        'key'       => '../id_rsa',
        'keytext'   => '',
        'keyphrase' => '*****',
        'agent'     => '',
        'timeout'   => 10,
    ],
],

I tried run a simple date command.

SSH::into('production')->run(['date']);

I kept getting

Unable to connect to remote server

Note:

  • Key is the key that I usally use to SSH into my VM.
  • Passphrase also entered correctly.

Did I forget anything ? Is my configuration looks okay ?

How would one go about this continue debuging this ?



via ihue

Advertisement