1

私は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: ドライブに「config」ファイルをディレクトリ構造で作成しました。

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.
4

1 に答える 1