ssh - How to make git push work with Cygwin? -
after lot of googling , troubleshooting, believe i've determined cygwin doesn't send ssh private key when sshing unless explicitly tell to. can in ssh config file line identityfile, don't know how when using git too.
this time, i'm trying push github. ssh key has been added. previously, couldn't ssh in until set config file , added identityfile line. can ssh github, can't git push.
anyone know how around this?
thanks ton!
edit: clear, when try git push, following error:
$ git push permission denied (publickey). fatal: remote end hung unexpectedly
but can ssh fine:
$ ssh github hi ______! you've authenticated, github not provide shell access. connection github.com closed.
edit2 solution:
user 'cupcake' suggested adding key ssh-agent. ran:
$ ssh-add <private key path>
and works. thanks!
i use puttycyg putty directly cygwin installation. has benefit of giving me access putty's ssh implementation, putty's terminal found more configurable , less buggy cygwin's.
for list of instructions on how set puttycyg notes , configuration files see effective-cygwin github page.
Comments
Post a Comment