Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory Permission denied

Edited

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 :(

1 answer

0 votes

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.

There is 1 more server. I did not install any. It worked immediately with the same settings.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,820 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you