2.0 Import SSH keys (on Debian Linux)
*PAT= placeholder name
Importing Personal SSH Keys
Applicable to personalPersonal / homeHome labLab setup
-
Import the user’s GitHub keys so they can ssh from their computer:
-
If any new SSH keys from other devices are added, this command needs to be done again
-
ssh-import-id-gh [GITHUB USERNAME]
Importing Other User's SSH Keys
Applicable to the Raspberry Pi Club servers - allowing other trusted users ssh access to a system requires more steps:
-
In the sys-admin’s shell, ssh into the system (e.g. node, VM, etc.) you want to give access to, and then escalate to superuser:
sudo su -
-
Create the new user and then add them to sudoers group:
- Set an easy temporary password for the user (e.g. password)
adduser PAT
usermod -aG sudo PAT
-
Switch the newly created user account:
sudo su PAT -
-
Import the user’s GitHub keys so they can ssh from their computer:
ssh-import-id-gh [PAT GITHUB USERNAME]
-
Have user ssh into the system and change their password into something secure:
- If any new SSH keys from other devices are added, this command needs to be done again
passwd
Last Updated: 2/20/2025
BY: Lilian