【问题标题】:No access to .ssh/config with envoy无法使用 envoy 访问 .ssh/config
【发布时间】:2020-02-04 02:39:52
【问题描述】:

重新安装 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.   

如何解决?

修改: 它看起来不像 envoy 文件的问题,因为它在 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

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

采取哪些步骤?

【问题讨论】:

  • 发布您的 Envoy.blade.php。
  • 请看已修改

标签: laravel-5 laravel-envoy


【解决方案1】:

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

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

帮了我!

【讨论】:

    猜你喜欢
    • 2018-02-09
    • 2014-08-31
    • 1970-01-01
    • 2019-01-15
    • 2013-05-16
    • 1970-01-01
    • 1970-01-01
    • 2019-03-16
    相关资源
    最近更新 更多