Skip to content

Instantly share code, notes, and snippets.

@razhangwei
Last active May 24, 2024 06:51
Show Gist options
  • Save razhangwei/713eef0b2239815ae72abd9580bd7248 to your computer and use it in GitHub Desktop.
Save razhangwei/713eef0b2239815ae72abd9580bd7248 to your computer and use it in GitHub Desktop.
ssh key-based authorization
  1. On PC, Generate ssh key: ssh-keygen -t rsa -b 4096
  2. Add public keys to the server (recommend using ssh-copy-id)
ssh-copy-id -i .ssh/id_rsa user@hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment