@sethetter what could be a problem?
$ cap production deploy
00:00 git:wrapper
01 mkdir -p /tmp/madison/
deploy@correct_IP's password:
✔ 01 deploy@correct_IP 26.815s
(Backtrace restricted to imported tasks)
cap aborted!
scp: /tmp/madison/git-ssh.sh: Permission denied
Tasks: TOP => git:check => git:wrapper
(See full trace by running task with --trace)
The deploy has failed with an error: scp: /tmp/madison/git-ssh.sh: Permission denied
** DEPLOY FAILED
** Refer to log/capistrano.log for details. Here are the last 2 lines:
INFO [27592b2a] Finished in 26.815 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/madison/git-ssh.sh 0.0%
capistrano.log shows this:
GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/madison/git-ssh.sh" ; /usr/bin/env git ls-remote --heads ssh://[email protected]/diffusion/1/madison.git )
DEBUG [97e484f0] Error writing to authentication socket.
DEBUG [97e484f0] Permission denied (publickey,keyboard-interactive).
DEBUG [97e484f0] fatal: Could not read from remote repository.
GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/madison/git-ssh.sh" ; /usr/bin/env git ls-remote --heads ssh://[email protected]/diffusion/1/madison.git )
DEBUG [b7007ac4] Warning: Permanently added 'phabricator.opengovfoundation.org,23.239.10.60' (ED25519) to the list of known hosts.
DEBUG [b7007ac4] Error reading response length from authentication socket.
DEBUG [b7007ac4] Permission denied (publickey,keyboard-interactive).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
DEBUG Uploading /tmp/madison/git-ssh.sh 0.0%
INFO Uploading /tmp/madison/git-ssh.sh 100.0%
INFO [26ed2797] Running /usr/bin/env chmod +rx /tmp/madison/git-ssh.sh as root@corect_IP
DEBUG [26ed2797] Command: ( export PATH="/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:$PATH" ; /usr/bin/env chmod +rx /tmp/madison/git-ssh.sh )
git-ssh.sh looks like this:
#!/bin/sh -e
exec /usr/bin/ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no "$@"