Deploying to digital ocean edeliver giving error

Am doing my first deployment ever following this article from digital ocean

but its not been an easy one as i expected it to be. Actually when running the command mix edeliver build release i encounter this error that i have come to hate literally

ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied (publickey,password).

A remote command failed on:

  mullah@example.com

Output of the command is shown above and the command executed
on that host is printed below for debugging purposes:

FAILED with exit status 255:

    current_shell="$0" || :
    [ -z "$current_shell" ] && current_shell="$SHELL"
    case "$current_shell" in
      (*bash*) echo 'bash is installed and the default shell' > /dev/null ;;
      (*zsh*)  echo  'zsh is installed and the default shell' > /dev/null ;;
      (*)
       echo
       echo "You are using an unsupported shell: '$current_shell'"
       echo "edeliver requires either bash or zsh to be installed"
       echo "and the default shell for the build user 'mullah'"
       echo "on your build host: 'example.com'."
       exit 1
       ;;
    esac
    set -e
    if [ ! -d /home/mullah/app_build ]
    then
      mkdir -p /home/mullah/app_build
      cd /home/mullah/app_build
      git init > /dev/null
      git config receive.denyCurrentBranch ignore
    else
      cd /home/mullah/app_build
      git config receive.denyCurrentBranch ignore
    fi

Will really appreciate any kind of assistance to solve this.
Thanks

Can you tell us a bit more about your system?

What operating system are you running?
Can you connect manually to the build host?
Have you set up your ssh-config as described in the linked article?

Disclaimer: I’m not using edilver or distillery

Am using Linux Ubuntu 16.4
Yes I can connect manually to the build host
and yes i did set the ssh keys.

Does it ask you for a password or do you get logged in without?

2 Likes

it does ask for a password

Then you haven’t set up the config as in the tiutorial…

Please make sure, that you do not have a password for the key, you have set up the correct IdentityFile and User in ~/.ssh/config for your host and also the key is in your ~/.ssh/authorized_keys on the host.

2 Likes

Now its working, i mean i can login to the build host without the password. so this part of the error is not there

ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied, please try again.
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
Permission denied (publickey,password).

have to deal with the remaining part

1 Like

and by the way, am just curious. What do you use?

I do not use anything, as I do not have anything to deploy :wink:

Also I just realise that the error message mentions “mullah@example.com”, have you missed to configure your host instead of the example host?

no in had just replaced my ip with example.com

sorry about that i never stated in advance