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.

【2021年11月最新】M1 MacbookでGitHub ssh接続する手順簡単まとめ

Last updated at Posted at 2021-11-14

新しいパソコンに買い替えて、昔のやり方でうまくできなかったため、メモ用に書きました。

ターミナル作業

cd ~
git config  --global user.name '名前'
git config  --global user.email '“メールアドレス”'
ssh-keygen -t ed25519 -C “メールアドレス”
# 2つの鍵生成までエンター叩き続ける
pbcopy < ~/.ssh/id_ed25519.pub

Github側作業

公開鍵登録

Settings → SSH adn GPC Keys → New SSH key

Title:端末がわかるように自由に命名

Key: pbcopy < ~/.ssh/id_ed25519.pub コピーされたものをそのままkeyに貼り付け

成功!!!

1
0
0

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?