Пытаюсь через капистрано выложить сайт. просиходит следующее.
MBP-Aleksandr:lesson-web-new aleksandrpetrov$ cap production deploy
Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text.
Enter passphrase for /Users/aleksandrpetrov/.ssh/id_rsa:gecnjqlbcr
rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
Enter passphrase for /Users/aleksandrpetrov/.ssh/id_rsa:gecnjqlbcr
ruby-2.3.0
ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]
00:00 git:wrapper
01 mkdir -p /tmp/lesson-web-new/
✔ 01 admin@178.57.217.78 0.099s
Uploading /tmp/lesson-web-new/git-ssh.sh 100.0%
02 chmod +rx /tmp/lesson-web-new/git-ssh.sh
✔ 02 admin@178.57.217.78 0.103s
00:00 git:check
01 git ls-remote --heads git@bitbucket.org:Mirkom63/lesson-web-new.git
01 Permission denied (publickey).
01 fatal: Could not read from remote repository.
01
01 Please make sure you have the correct access rights
01 and the repository exists.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as admin@178.57.217.78: git exit status: 128
git stdout: Nothing written
git stderr: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
SSHKit::Command::Failed: git exit status: 128
git stdout: Nothing written
git stderr: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Tasks: TOP => git:check
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as admin@178.57.217.78: git exit status: 128
git stdout: Nothing written
git stderr: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 20 lines:
DEBUG [68cbc936] Finished in 6.678 seconds with exit status 0 (successful).
DEBUG [49c2d67c] Running ~/.rvm/bin/rvm 2.3.0 do ruby --version as admin@178.57.217.78
DEBUG [49c2d67c] Command: ~/.rvm/bin/rvm 2.3.0 do ruby --version
DEBUG [49c2d67c] ruby 2.3.0p0 (2015-12-25 revision 53290) [i686-linux]
DEBUG [49c2d67c] Finished in 4.998 seconds with exit status 0 (successful).
INFO [7fbdd460] Running /usr/bin/env mkdir -p /tmp/lesson-web-new/ as admin@178.57.217.78
DEBUG [7fbdd460] Command: /usr/bin/env mkdir -p /tmp/lesson-web-new/
INFO [7fbdd460] Finished in 0.099 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/lesson-web-new/git-ssh.sh 0.0%
INFO Uploading /tmp/lesson-web-new/git-ssh.sh 100.0%
INFO [4160c035] Running /usr/bin/env chmod +rx /tmp/lesson-web-new/git-ssh.sh as admin@178.57.217.78
DEBUG [4160c035] Command: /usr/bin/env chmod +rx /tmp/lesson-web-new/git-ssh.sh
INFO [4160c035] Finished in 0.103 seconds with exit status 0 (successful).
INFO [a6ed5068] Running /usr/bin/env git ls-remote --heads git@bitbucket.org:Mirkom63/lesson-web-new.git as admin@178.57.217.78
DEBUG [a6ed5068] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/lesson-web-new/git-ssh.sh" ; /usr/bin/env git ls-remote --heads git@bitbucket.org:Mirkom63/lesson-web-new.…
DEBUG [a6ed5068] Permission denied (publickey).
DEBUG [a6ed5068] fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
У меня MacOS. Сегодня обновился до Sierra. Теперь не могу ни один сайт выложить, пишет что прав нету( До этого работало все.
Сгенерировал локально ключ, скопировал содержимое id_rsa.pub на bitbucket и на сервер в authorized_keys. Нифига не работает....
при чем когда запускаю деплой, терминал просит ввести пароль от ключа. раньше такого тоже не было....