如何更改git push的私钥位置

如何更改git push的私钥位置,git,heroku,Git,Heroku,我和heroku一起工作。我的git存储库中的本地项目位于闪存驱动器(F:)上。我需要将我最初在另一台计算机的c驱动器上设置的ssh私钥的位置更改为F:/ssh,私钥也位于该位置 $ git push git@heroku.com:MYPROJECT.git master The authenticity of host 'heroku.com (x.x.x.x)' can't be established. RSA key fingerprint is XXXXXXXXXX. Are

我和heroku一起工作。我的git存储库中的本地项目位于闪存驱动器(F:)上。我需要将我最初在另一台计算机的c驱动器上设置的ssh私钥的位置更改为F:/ssh,私钥也位于该位置

 $ git push git@heroku.com:MYPROJECT.git master
 The authenticity of host 'heroku.com (x.x.x.x)' can't be established.
 RSA key fingerprint is XXXXXXXXXX.
 Are you sure you want to continue connecting (yes/no)? yes
 Warning: Permanently added 'heroku.com,x.x.x.x' (RSA) to the list of known hosts.
 Permission denied (publickey).
 fatal: Could not read from remote repository.     

 Please make sure you have the correct access rights
 and the repository exists.
我该怎么做

编辑:

按照Shireesh的指示,我在我的F:驱动器中创建了一个具有目录结构的“配置”文件:

F:/.ssh:

id_rsa (private ) 
id_rsa (public ) 
config
配置看起来像:

Host heroku.com
User git
IdentityFile /id_rsa
当我重复推送时,我得到:

Permission denied (publickey).
fatal: Could not read from remote repository.

 Please make sure you have the correct access rights
and the repository exists.

将以下行添加到
$HOME/.ssh/config

Host heroku.com
   User git
   IdentityFile /path/to/your/ssh/private_key
这应该考虑ssh密钥的位置