Skip to content

git doesn't seem to work without ssh first #29

@dracos

Description

@dracos

If in a new session I try and git pull, then I am not asked for my passphrase, the key isn't loaded and I can't log in. If I SSH first and then use git pull, it is fine, see transcript below. I have ssh-ident as a symlink from ssh in my bin directory, which the readme says: "This works for rsync and git". This is on a Mac 10.10.5, with git 2.8 from MacPorts. Let me know if you need any more information.

$ git pull
Loading keys:
    /Users/matthew/.ssh/identities/work/id_rsa
ssh_askpass: exec(/usr/libexec/ssh-askpass): No such file or directory
Password: [Ctrl-C]
$ ssh work.machine
Loading keys:
    /Users/matthew/.ssh/identities/work/id_rsa
Enter passphrase for /Users/matthew/.ssh/identities/work/id_rsa: 
Identity added: /Users/matthew/.ssh/identities/work/id_rsa (/Users/matthew/.ssh/identities/work/id_rsa)
[ Successfully logged in to work.machine ]
work.machine:~$ logout
Connection to work.machine closed.
$ git pull
All keys already loaded
Already up-to-date.
$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions