LoginSignup
5
5

More than 5 years have passed since last update.

GitでSSH秘密鍵の設定方法[Windows]

Posted at

はじめに

たまに設定する必要があるが、よく忘れるのでメモ

指定方法一覧

Git for Windows (Git Bash)

  • 秘密鍵形式:OpenSSH形式

  • 秘密鍵を格納する場所:

// %userprofile% = ユーザのホームフォルダ
%userprofile%\.ssh\id_rsa

TortoiseGit

  • 秘密鍵形式:PPK形式
  • 秘密鍵配置場所:自由
  • 配置場所指定方法:
TortoiseGit > Settings > Git >Remote > [リモートリポジトリ名] > PUtty Key 

// or

.git\configで
remote.origin.puttykeyfile=[配置パス]
5
5
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
5
5