Closed15
SourceTreeの初期設定
設定経由でGithubアカウントを入力
forkしたリモートリポジトリをローカルにクローンしようとしたらエラー
ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: not a git repository (or any of the parent directories): .git
ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
こういうの毎回忘れる
$ ssh -T -p 443 git@ssh.github.com
The authenticity of host '[ssh.github.com]:443 ([54.168.17.15]:443)' can't be established.
ED25519 key fingerprint is SHA256:
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?
yesを選択
$ ssh -T -p 443 git@ssh.github.com
git@ssh.github.com: Permission denied (publickey).
↑状況変わらなかったからskip
こっちのほうが怪しい
ssh周りを何もやってない事に気づいた
sshキー設定が完了
githubcliでリモートリポジトリのクローンを試す
が、これも失敗
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
あらためてこれを調査
sshkeyの登録が失敗していただけだった。
リモートリポジトリのクローンとpushができた
大丈夫そう
このスクラップは2022/08/08にクローズされました