git access fail
Less than 1 minute
git access fail
push時, error如下
$ git push -u origin main
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.連線測試
$ ping git@github.com$ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed outResolve
在 ~/.ssh/底下新增config
config:
Host github.com
Hostname ssh.github.com
Port 443