Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Adam Cash August 25, 2020

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 25, 2020

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.

Adam Cash August 25, 2020

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.

Adam Cash August 25, 2020

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

Like Marlon Lugli likes this
TAGS
AUG Leaders

Atlassian Community Events