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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Calling any interview participants for Bitbucket Data Center

Hi everyone,  We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...

442 views 4 4
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