2.0 Import User’s SSH key
*PAT= placeholder name
*BOB = placeholder name
-
In the sys-admin’s shell, ssh into
yourtheown ricochetsystem and then escalate to superuser:
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
githubGitHub keys so they can ssh into their ricochet on their computer:-
If any new SSH keys from other devices are added, this command needs to be done again
-
ssh-import-id-gh [PAT GITHUB USERNAME]
Connecting to Machine From Remote Device
Gather IP of target device
ip -br a
In windowsWindows powershell,PowerShell, type the following command:
ssh PAT@x.x.x.x (x.x.x.x is the ip address that you gathered from the ip command)