Skip to main content

2.0 Ricochet Access🎾


*PAT=Steps placeholderto nameGive New Users Ricochet Access

Create
  1. Generate and Add SSH Keys to Github

  1. On user’s shell (i.e.Refer cmd):

    to
      this
    • Just press Enter for the prompts

      doc)
    • Make sure to note where the SSH keys are being stored

      • ex) C:\Users\PAT/.ssh/

ssh-keygen
  1. Navigate to the .ssh folder

  2. Open the public key file (ends in .pub) in Notepad and copy just the key

  3. Generate a SSH key on user’s Github account

    • Click on Github Profile > Settings > SSH and GPG keys > New SSH key

  1. Paste the public key into user’s Github profile

    • Title can be anything (should note what machine it belongs to)

    • Key type: Authentication Key

Edit SSH Config File

    • Navigate to inside the .ssh folder on the user’s system

      • EX) C:\Users\PAT\.ssh

  1. Create a new file called “config” (unless it already exists) and edit it with Notepad

    • Remove any file extension from the file (e.g. .txt)

  1. Enter the following:

    following and save the file:
Host pi-club-pve (can be changed to any name // this is what you SSH to later)[NAME]
    HostName raspberrypiclub.org
    User PAT[USER]
    LocalForward 8006 192.168.1.18:8006
    Port 1666
  1. SaveImport the file

Import User’User's SSH keyKey

*BOB = placeholder name

  1. In the sys-admin’s shell, ssh into your own ricochet and then escalate(Refer to superuser:

    this doc)
sudo su -
  1. Add the new user and then add them to sudoers group:

sudo su adduser PAT
sudo usermod -aG sudo PAT
  1. Change to the user:

sudo su PAT -
  1. Import the user’s github 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 windows 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)

Add New Proxmox User

  1. Click on Datacenter (PIClubCluster) > Users > Add

    • Allow userRefer to setthis their own username and password

      doc)
    • Appoint user into appropriate group

AccessingAccess the Proxmox Server

  1. Open new shell (i.e.Refer CMD)to

    this
  2. Type in the following:

    doc)
ssh [host] (the name in the C:\Users\PAT\.ssh config file // EX: ssh pi-club-pve)
  1. In a new browser, type in: localhost:8006

  2. Login with user’s username and password previously made

    • Make sure Realm: Proxmox VE authentication server