1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【エラー解決】SSH接続したにも関わらず push,pull するときに毎回passphraseを求められる問題

Last updated at Posted at 2020-04-30

追記:200430
ご指摘いただきpassword→passphraseに訂正しました。

###【問題】
SSH接続したにも関わらず
push,pull するときに毎回password passphraseを求められる問題

###【原因】
SSH接続を設定したとき
$ ssh-keygen
この後に表示される
Enter passphrase (empty for no passphrase):
でenterを押すべきところ、
password passphraseを入力していた。

###【解決方法】

$ ssh-keygen

Generating public/private rsa key pair.
Enter file in which to save the key (/Users/${user_name}/.ssh/id_rsa): 
/Users/${user_name}/.ssh/id_rsa already exists.
Overwrite (y/n)?$y
#enter×2 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
この後
enter×2回
$ cat ~/.ssh/id_rsa.pub
#SSH 鍵の公開鍵をコピー
#GitHubのPersonal settingsからSSH keysに情報を登録。

###参考にした記事(いつもありがとうございます)

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?