ssh配置

125 阅读1分钟

ssh配置

  1. Generate an SSH key pair
    • ssh-keygen -t ed25519 -C "<comment>"

    一路enter

  2. Add Key
    • 先copy,tr -d '\n' < ~/.ssh/id_ed25519.pub | pbcopy
  3. 如果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