2.0 Import SSH keys (on Debian Linux)
*PAT= placeholder name
- Personal SSH Keys
Importing
In the sys-admin’s shell, ssh into the system and then escalateApplicable to superuser:personal / home lab setup
sudo su -
Add the new user and then add them to sudoers group:
sudo su adduser PAT
sudo usermod -aG sudo PAT
Change to the user:
sudo su PAT -
-
Import the user’s GitHub keys so they can ssh
into their ricochet onfrom 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:
passwd
Last Updated: 2/20/2025
BY: cygnusx1