Ssh 流浪汉上罐头';找不到私钥路径

Ssh 流浪汉上罐头';找不到私钥路径,ssh,vagrant,ssh-keys,vagrantfile,Ssh,Vagrant,Ssh Keys,Vagrantfile,当我尝试运行vagrant up时,我得到一个错误: There are errors in the configuration of this machine. Please fix the following errors and try again: SSH: * `private_key_path` file must exist: /home/buildbot/mykey.pem 但是,这个文件肯定存在。如果我运行ls-lah/home/buildbot/mykey.pem,它就在

当我尝试运行
vagrant up
时,我得到一个错误:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

SSH:
* `private_key_path` file must exist: /home/buildbot/mykey.pem
但是,这个文件肯定存在。如果我运行ls-lah/home/buildbot/mykey.pem,它就在那里。它属于我的用户“buildbot”。它具有正确的权限。一切看起来都很好,但流浪汉看不到它,即使它是以用户“buildbot”的身份运行的。为什么会这样

我的Vagrant文件是AWS的一个相当通用的文件:

# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'vagrant-aws'
Vagrant.configure(2) do |config|
  config.vm.box = 'aws-dummy'
  config.vm.provider :aws do |aws, override|
    aws.keypair_name = 'my-key-pair'
    aws.security_groups = ['my-security-group']
    aws.access_key_id = ENV['AWS_ACCESS_KEY']
    aws.secret_access_key = ENV['AWS_SECRET_KEY']
    aws.ami = 'ami-43c92455'
    override.ssh.username = 'ubuntu'
    override.ssh.private_key_path = ENV['AWS_PRIVATE_KEY_PATH']
  end
end

你是在向无法访问你的系统的观众提问,而不是展示你陈述观点的事实:“拥有正确的权限。一切看起来都很好”。那么这篇文章的目的是什么呢?如果一切看起来都很好,那么唯一可能的答案是:你是好人,流浪汉是坏人。这可能是2015年的翻版吗?关于此的另一个线程: