Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mgmgpyaesonewin/dd2b9b1f55e13eb52734b37689fd41ec to your computer and use it in GitHub Desktop.
Save mgmgpyaesonewin/dd2b9b1f55e13eb52734b37689fd41ec to your computer and use it in GitHub Desktop.
How to set SSH key for multiple users?
Switch to the user:
su a
Generate SSH keys:
ssh-keygen
{hit enter a few times}
Create/edit authorized keys file:
nano ~/.ssh/authorized_keys
Paste your public key in that file and close it out.
Rinse and repeat with each user.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment