Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update ssh
authored
Jul 07, 2023
by
umaumax
Show whitespace changes
Inline
Side-by-side
ssh.md
View page @
e9db36f7
...
...
@@ -364,3 +364,17 @@ ssh-add -L
2.
`ssh`
コマンドに
`-A`
オプションをつける or
`~/.ssh/config`
で
`ForwardAgent yes`
を追加する
3.
リモートでsshログインして、
`ssh-add -L`
して確かめてから、
`git clone git@github.com:ORG/REPO.git`
をする
#### ssh-agentの機能で適切にfetchできなかった原因
まず、
`ssh -T git@github.com`
で確認する
該当するgitのリモートのアドレスが原因である可能性がある
```
bash
$
git remote
-v
origin github.com:ORG/REPO.git
(
fetch
)
origin github.com:ORG/REPO.git
(
push
)
$
git remote set-url origin git@github.com:ORG/REPO.git
$
git remote
-v
origin git@github.com:ORG/REPO.git
(
fetch
)
origin git@github.com:ORG/REPO.git
(
push
)
```
\ No newline at end of file