Help us understand the problem. What is going on with this article?

macOSのアップデートをした後にsshキーが無いと言われた

More than 1 year has passed since last update.

macOSのアップデートをしたら,SourceTreeでpushができなくなりました

git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v origin refs/heads/master:refs/heads/master 
Pushing to git@github.com:9wick/xxxx.git
ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Completed with errors, see above

どうやら認証がうまく行かなくなったようです
いままでもsshキーでログインしていたのですが,なぜかキーファイルを見つけられなくなっていました.

/Users/ユーザー名/.ssh/id_rsaにキーを入れているのですが,/usr/X11R6/bin/ssh-askpassを探してない...と諦められているようです.

キーの場所の設定っていつの間に変わったんだろう・・・?

とりあえず,下記コマンドで再度登録したらエラーでなくなりました.

ssh-add ~/.ssh/id_rsa

参考

https://github.com/Microsoft/vscode/issues/32097

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした