LoginSignup
0
0

More than 3 years have passed since last update.

git cloneする際、pub keyを渡してアクセス許可してもらった後にする設定

Posted at

過去やったのにまた忘れてたのでメモです。

githubにpub keyを登録した後にすること

事象:
先方のリポジトリに、パブリックキーでアクセス許可していただいたけれど、接続できなかった。
接続してリポジトリをcloneしたい

やったこと

~/.ssh/config というテキストファイルを作成し、以下の設定を行う。

$ cd ~/.ssh
$ touch config

作成された config ファルを編集。

host xxxxxxxxxxxx.xxx
 HostName xxxxxxxxxxxx.com
 IdentityFile ~/.ssh/xxxxx(登録したキーのファイル名)
 User git

無事つなげました🙌

0
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
0
0