SSH Tips

· 56 words · 1 minutes to read
Categories: dev
Tags: ssh tips macOS

Some useful tips of SSH.

  • generate ssh for GitHub/GitLab

ssh-keygen -t ed25519 -C ""

in ssh config ($HOME/.ssh/config)

Host # ssh -T
    PubkeyAuthentication yes
    IdentityFile ~/.ssh/keys/id_ed25519

Add ssh public key to github/gitlab ssh key in setting.

Add ssh key to macOS keychain

ssh-add --apple-use-keychain ~/.ssh/id_ed25519

Test ssh key

ssh -T