there're variations of question on internet, i've tried following other questions answers no avail.
the problem whenever try push changes repository @ github following error: "permission denied (publickey). fatal: not read remote repository. please make sure have correct access rights , repository exists."
my ssh keys ~/.ssh/github_rsa , github_rsa.pub. have set passphrase .bashrc file @ %userprofile%:
env=~/.ssh/agent.env agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; } agent_start () { (umask 077; ssh-agent >| "$env") . "$env" >| /dev/null ; } agent_load_env # agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?) if [ ! "$ssh_auth_sock" ] || [ $agent_run_state = 2 ]; agent_start ssh-add ~/.ssh/github_rsa elif [ "$ssh_auth_sock" ] && [ $agent_run_state = 1 ]; ssh-add ~/.ssh/github_rsa fi unset env
i changed intellij settings of ssh client native. every operation works fine in git bash no in intellij.
okay able fix tedious error. have create ssh config in ~/.ssh/config so:
host github.com user git identityfile ~/.ssh/github_rsa
this because intellij expect key files id_rsa default need guide bit. after switched ssh client in settings native built-in, , voila ! :)
Comments
Post a Comment