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

Pseudo-terminal will not be allocated because stdin is not a terminal.

Adam Cash August 24, 2020

I am getting bellow error. 

Pseudo-terminal will not be allocated because stdin is not a terminal.
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).

I added SSH key: Settings->Pipeline->SSH Keys.

My bitbucket-pipelines.yml file inside:

pipelines:
default:
- step:
deployment: staging
caches:
- composer
script:
- ssh root@142.93.143.146
- eval `ssh-agent -s`
- ssh-add ~/.ssh/id_rsa
- ssh-add -l
- cd /var/www/backoffice/
- git checkout master
- git pull origin master
- sudo php artisan optimize
- sudo composer dump-autoload
- echo 'Deploy finished.'

 I couldn't find a solution in my searches, unfortunately.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2020

This is a problem with your process set up - you will need to be calling the ssh process with -t and -T as well.

Adam Cash August 24, 2020

Thank you I resolve. Bellow error:

Pseudo-terminal will not be allocated because stdin is not a terminal

But I am getting now : 

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2020

Either ssh-askpass is not installed there, or the permissions are set to not allow your process to run it.

Like Adam Cash likes this
Adam Cash August 24, 2020

I installed the ssh-askpass on my system. 

How can I set permission? How can I allow the this permission?

Adam Cash August 25, 2020

@Nic Brough -Adaptavist-  I didnt find any solution on the internet. What is the problem? Can you help?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events