vagrant setup在克隆git时抛出权限被拒绝(publickey)

我正试图在客户端运行流浪汉设置给Vagrantfile将他的木偶项目设置到我的开发环境中,我以前从未使用过或听说过Vagrant,

它抛出以下错误

REPO: /var/www/project/project-puppet/deploy/vagrant/hiera/common
SETUP: Cloning ssh://git@source.sanoma.com:7999/devops/hiera-common.git 
Cloning into '/var/www/project/project-puppet/deploy/vagrant/hiera/common'... 
Permission denied (publickey). 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

There was an error loading a Vagrantfile. The file being loaded
and the error message are shown below. This is usually caused by
a syntax error.

Path: /var/www/project/project-puppet/Vagrantfile
Line number: 113
Message: Errno::ENOENT: No such file or directory - /var/www/project/project-puppet/deploy/vagrant/hiera/common

P.S:我正在使用Ubuntu 15.04

和Vagrant 1.7.4

最佳答案 首先,你有拉动许可吗?

如果是,您是否设置了ssh密钥以通过ssh连接访问此repo?如果没有,请进行设置.

github上的一个指南,用于设置ssh访问. (类似于不同的git主机)

ssh key generation

点赞