无法使用 envoy 访问 .ssh/config

No access to .ssh/config with envoy

重新安装 Kubuntu 后,运行 envoy 和 ssh 出现问题。我将 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.   

如何解决?

已修改: 它看起来不像是 envoy 文件的问题,因为它在重新安装 Kubuntu 之前有效 搜索决定 I 运行 接下来 :

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

composer 或其许可有问题,因为我没有 /home/serge/.composer/config.json 文件?

采取哪些步骤?

我找到了这个 分支并在命令之后:

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

帮助了我!