Github push error. unable to read askpass & could not read Username

20,995

Solution 1

I have had the same problem.

I am using Ubuntu 12.04, Eclipse with Aptana plug-in. Through Aptana's Git I was having the same problem.

I solved it by installing TK and TCL packages. It then was able to read the askpass.tcl file.

sudo apt-get install tcl
sudo apt-get install tk

Hope this helps

Solution 2

The message "error: unable to read askpass response from '/tmp/git-askpass-0.sh'" was shown to me when I used Git from Intellij, but git worked fine from the terminal.

I tried Seborreia's method but it did not work

Someone suggested rebooting the computer.

Later on I realized that my jre/bin folder did not have appropriate permissions. Adding +x permissions fixed the issue.

Solution 3

I had the same error:

error: unable to read askpass response from...

I solved it by running:

unset SSH_ASKPASS

tried to pull again and everything works fine.

The solution is discussed here: https://community.atlassian.com/t5/Bitbucket-questions/git-login-issue-from-linux-command-line/qaq-p/716269

Share:
20,995
misschoksondik
Author by

misschoksondik

Updated on July 09, 2022

Comments

  • misschoksondik
    misschoksondik almost 2 years

    I am trying to push within Aptana but am getting the following error. I have successfully pulled, but can't figure out why my push won't work.

    /home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass.    tcl: 3: exec: wish: not found
    error: unable to read askpass response from     '/home/jeni/apps/Aptana_Studio_3/plugins/com.aptana.git.core_3.0.0.1350339960/os/linux/askpass.tcl'
    fatal: could not read Username for 'https://github.com': No such device or address
    
  • Dharmendra Prajapati
    Dharmendra Prajapati over 3 years
    Thanks @Seborreia it woked for me in linux mint.
  • Sahap Asci
    Sahap Asci over 2 years
    before this solution work you should check your environmental variables. env | grep SSH_ASKPASS