我试图使用capistrano部署我的laravel项目。遵循here和here中的教程,但是当我从本地计算机运行cap production deploy
时,我得到的是以下内容:
INFO [0d38240d] Running /usr/bin/env git ls-remote --heads git@bitbucket.org:tudor2004/test-deploy.git as user@host
DEBUG [0d38240d] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/sejurplacut/git-ssh.sh /usr/bin/env git ls-remote --heads git@bitbucket.org:tudor2004/test-deploy.git )
DEBUG [0d38240d] Permission denied (publickey).
DEBUG [0d38240d] fatal: Could not read from remote repository.
DEBUG [0d38240d]
DEBUG [0d38240d] Please make sure you have the correct access rights
DEBUG [0d38240d] and the repository exists.
在我的VPS运行命令ssh git@bitbucket.org
上工作并给我以下内容:
user@host:/var/www/test-deploy$ ssh git@bitbucket.org
Enter passphrase for key '/home/user/.ssh/id_rsa':
PTY allocation request failed on channel 0
logged in as tudor2004.
You can use git or hg to connect to Bitbucket. Shell access is disabled.
Connection to bitbucket.org closed.
任何想法可能是什么?