ssh配置
- Generate an SSH key pair
ssh-keygen -t ed25519 -C "<comment>"
一路enter
- Add Key
- 先copy,
tr -d '\n' < ~/.ssh/id_ed25519.pub | pbcopy
- 先copy,
- 如果established
-
Cloning into 'test-ssh'... The authenticity of host 'xxx (xxx.xxx.xxx.xxx)' can't be established. ECDSA key fingerprint is xxxx Are you sure you want to continue connecting (yes/no/[fingerprint])? Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights ``` - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
-