Skip to content

Instantly share code, notes, and snippets.

View omarsaifuddin's full-sized avatar

Omar Saifuddin omarsaifuddin

  • Toronto
View GitHub Profile
@omarsaifuddin
omarsaifuddin / multiple-ssh-authkeys.md
Created March 18, 2023 20:57 — forked from otkrsk/multiple-ssh-authkeys.md
Add multiple SSH keys to the authorized_keys file to enable SSH authentication when connecting to a server.

Step 1: Generate first ssh key Type the following command to generate your first public and private key on a local workstation. Next provide the required input or accept the defaults. Please do not change the filename and directory location.

workstation 1 $ ssh-keygen -t rsa

Finally, copy your public key to your remote server using scp