I am using Ubuntu. I installed ssh_askpass package.
I am getting bellow error:
ssh -T root@142.93.143.146 'cd /var/www/backoffice/ && git pull origin master'
<1s
+ ssh -T root@142.93.143.146 'cd /var/www/backoffice/ && git pull origin master'
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).
My bitbucket-pipelines.yml file inside:
image: atlassian/default-image:latest
pipelines:
default:
- step:
deployment: staging
caches:
- composer
script:
- ssh -T root@142.93.143.146 'cd /var/www/backoffice/ && git pull origin master'
I searched the internet, I couldn't find any solution. i got very nervous :(
Community moderators have prevented the ability to post new answers.
The process running ssh-askpass does not have permission to use the program, or the program is not installed on the path you have given. It may also be that the program cannot access another file.
Log on to the server you're trying to run it on and see what happens when you run the command manually, ideally with a "verbose" flag so it gives you a bit more info, after checking that it is where you think it is and that the permissions on it are correct.
I made on Ubuntu:
ln -s /usr/bin/ssh-askpass /usr/bin/ssh_askpass
When I run this command:
# ssh_askpass
ssh_askpass
Unable to init server: Could not connect: Connection refused
(ssh_askpass:29420): Gtk-WARNING **: 11:15:04.782: cannot open display:
exec(/usr/bin/ssh-askpass):
-bash: syntax error near unexpected token `/usr/bin/ssh-askpass'
root@test-droplet:/var/www/backoffice#
so it works. stupid mistake.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.