Aptana Studio
  1. Aptana Studio
  2. APSTUD-4473

Problem with git push command (ssh_askpass)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Needs more info
    • Affects Version/s: Aptana Studio 3.0.9, 2012 Sprint 04
    • Fix Version/s: None
    • Component/s: scripting
    • Labels:
    • Environment:

      Arch Linux

    • Story Points:
      8

      Description

      I get this in console when trying to push commit to github:

      ssh_askpass: exec(/usr/share/aptana/plugins/com.aptana.git.core_3.0.0.1327087459/os/linux/ssh-askpass.tcl): Permission denied
      Permission denied (publickey).
      fatal: The remote end hung up unexpectedly

      Here is my .git/config

      [core]
      repositoryformatversion = 0
      filemode = true
      bare = false
      logallrefupdates = true
      [remote "origin"]
      url = git@github.com:ciembor/some_project.git
      fetch = +refs/heads/:refs/remotes/origin/
      [branch "master"]
      remote = origin
      merge = refs/heads/master

      Pushing works from terminal. Here is an output:

      [ciembor@peace some_project]$ git push
      Enter passphrase for key '/home/ciembor/.ssh/id_rsa':
      Counting objects: 11, done.
      Delta compression using up to 2 threads.
      Compressing objects: 100% (6/6), done.
      Writing objects: 100% (6/6), 1.14 KiB, done.
      Total 6 (delta 4), reused 0 (delta 0)
      To git@github.com:ciembor/some_project.git
      635a296..9770c46 master -> master

        Activity

        Hide
        Chris Williams added a comment -

        Looks like an SSH key issue. Maybe it's not able to access the keypair or is using a different one versus the terminal. When you say it works in a terminal, is that inside the Terminal view in the IDE, or a terminal outside the IDE?

        Show
        Chris Williams added a comment - Looks like an SSH key issue. Maybe it's not able to access the keypair or is using a different one versus the terminal. When you say it works in a terminal, is that inside the Terminal view in the IDE, or a terminal outside the IDE?
        Hide
        MC added a comment - - edited

        It's in Aptana's Terminal tab (and of course outside too).

        Here are rights of files in .ssh:

        [ciembor@peace .ssh]$ pwd
        /home/ciembor/.ssh
        [ciembor@peace .ssh]$ ls -al
        razem 28
        drwxr-xr-x 2 ciembor users 4096 03-12 20:38 .
        drwxr-xr-x 145 ciembor root 12288 03-12 20:38 ..
        rw------ 1 ciembor users 3326 2011-02-19 id_rsa
        rw-rr- 1 ciembor users 739 2011-02-19 id_rsa.pub
        rw-rr- 1 ciembor users 2252 10-24 21:04 known_hosts
        [ciembor@peace .ssh]$

        In Network Connection -> SSH2 ->
        -> General: SSH2 home is set to '/home/ciembor/.ssh'
        Private Keys: id_dsa,id_rsa
        -> Key Management: empty (when I try to load id_rsa.pub I get `Failed to load given file.`)
        -> Known Hosts: hosts loaded properly
        -> Authentication Methods: gssapi-with-mic, publickey, password, keyboard-interactive (everything ticked)

        Show
        MC added a comment - - edited It's in Aptana's Terminal tab (and of course outside too). Here are rights of files in .ssh: [ciembor@peace .ssh] $ pwd /home/ciembor/.ssh [ciembor@peace .ssh] $ ls -al razem 28 drwxr-xr-x 2 ciembor users 4096 03-12 20:38 . drwxr-xr-x 145 ciembor root 12288 03-12 20:38 .. rw ------ 1 ciembor users 3326 2011-02-19 id_rsa rw-r r - 1 ciembor users 739 2011-02-19 id_rsa.pub rw-r r - 1 ciembor users 2252 10-24 21:04 known_hosts [ciembor@peace .ssh] $ In Network Connection -> SSH2 -> -> General: SSH2 home is set to '/home/ciembor/.ssh' Private Keys: id_dsa,id_rsa -> Key Management: empty (when I try to load id_rsa.pub I get `Failed to load given file.`) -> Known Hosts: hosts loaded properly -> Authentication Methods: gssapi-with-mic, publickey, password, keyboard-interactive (everything ticked)
        Hide
        Chris Williams added a comment -

        So there's a couple possibilities for where the difference are:
        First, it could simply be a busted permissions issue on the tcl script we use as a callback for entering in your SSH password. That lives at /usr/share/aptana/plugins/com.aptana.git.core_3.0.0.1327087459/os/linux/ssh-askpass.tcl

        Can you verify that it has executable permissions? It might not be able to run that to pop a UI prompt for your password, and therefore the connection/auth just fails.
        (In my testing on a VM, the file does has executable permissions for me from the Linux zip)

        If it can run that, it's possible something else is the issue.

        In the Terminal view, we basically open a bash shell, which will run your profile and set up the environment. When we run through the IDE, we try to gather the ENV from a bash shell and pass that along to the process we're launching. So the environment may somehow be slightly different between the two.

        Show
        Chris Williams added a comment - So there's a couple possibilities for where the difference are: First, it could simply be a busted permissions issue on the tcl script we use as a callback for entering in your SSH password. That lives at /usr/share/aptana/plugins/com.aptana.git.core_3.0.0.1327087459/os/linux/ssh-askpass.tcl Can you verify that it has executable permissions? It might not be able to run that to pop a UI prompt for your password, and therefore the connection/auth just fails. (In my testing on a VM, the file does has executable permissions for me from the Linux zip) If it can run that, it's possible something else is the issue. In the Terminal view, we basically open a bash shell, which will run your profile and set up the environment. When we run through the IDE, we try to gather the ENV from a bash shell and pass that along to the process we're launching. So the environment may somehow be slightly different between the two.

          People

          • Assignee:
            Chris Williams
            Reporter:
            MC
          • Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development