无法使用envoy访问.ssh / config

时间:2019-10-06 15:30:14

标签: laravel-5 laravel-envoy

重新安装Kubuntu后,我在使用ssh运行envoy时遇到问题。我将700设置为配置文件, 但还是出现错误:

$ sudo chmod  700  /home/serge/.ssh/config
serge@athoe:/mnt/_work_sdb8/wwwroot/lar/hostels2$ envoy run Hostels2Deploy  --app_version=0.112 --run_migration=1   --run_migration_seed=1                                                                                                   
PHP Warning:  file_get_contents(/home/serge/.ssh/config): failed to open stream: Permission denied in /home/serge/.composer/vendor/laravel/envoy/src/SSHConfigFile.php on line 35                                                            

Warning: file_get_contents(/home/serge/.ssh/config): failed to open stream: Permission denied in /home/serge/.composer/vendor/laravel/envoy/src/SSHConfigFile.php on line 35                                                                 
[laravelserver]: ssh: Could not resolve hostname laravelserver: Name or service not known                                                                                                                                                    
This task did not complete successfully on one of your servers.   

如何修复?

已修改: 它看起来不像使节文件的问题,因为它在重新安装Kubuntu之前起作用 搜索我下一步执行的决定:

sudo chmod -R 777 /home/serge/.composer/config.json
sudo chown serge /home/serge/.composer/config.json

但是我收到消息,未找到/home/serge/.composer/config.json。然后我从先前的家庭安装中获取内容:

{
    "require": {
        "laravel/envoy": "^1.6",
        "laravel/installer": "~1.1"
    }
}

并运行

sudo service sshd restart

但是仍然出现此错误。我有:

$ composer -v
...
Composer 1.6.3 2018-01-31 16:28:17

Somethimg对作曲家或其许可有误,因为我没有/home/serge/.composer/config.json文件?

采取哪些步骤?

1 个答案:

答案 0 :(得分:0)

我在命令后找到了这个.composer/config file permission denied using laravel分支:

 sudo chmod  744  /home/serge/.ssh/config

帮助了我!