当我集成SSH时,会提示我错误密码/密钥

时间:2018-10-24 07:03:26

标签: laravel-5.4

当我集成SSH时,会提示我错误密码/密钥。谁能帮上忙。以及如何在laravel中获取SSH密钥和密码,请参阅我在laravel中的remote.php。

 'connections' => [
    'production' => [
        'host'      => '52.33.3.160',
        'username'  => 'jignesh',
        'password'  => 'Jignesh@456.',
        'key'       => 'cnx4MGeUn5xO0XxgQ3xxpo6F18rAe5uXxa3',
        'keytext'   => 'test',
        'keyphrase' => '',
        'agent'     => '',
        'timeout'   => 10,
    ],
],

SSH::into('runtime')->run(array(
    'cd /var/www/html/Gallery/banner',
    'ffmpeg -i '.$name.' -b 250000 jignesh.mp4',
));

0 个答案:

没有答案