Skip to main content

2.0 Ricochet Access🎾

*BOB = placeholder name 

Create and Add SSH Keys to Github

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

  • Just press Enter for the prompts

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

    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

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

    •  EX) C:\Users\BOB\.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:

    Host pi-club-pve (can be changed to any name // this is what you SSH to later)


     

      HostName raspberrypiclub.org


     

      User BOB


     

      LocalForward 8006 192.168.1.18:8006


     

      Port 1666

    1. Save the file

    Import User’s SSH key 

    *BOB = placeholder name

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

    sudo su -

    1. Add the new user and then add them to sudoers group:

    sudo su adduser BOB


    sudo usermod -aG sudo BOB

    1. Change to the user:

    sudo su BOB -

    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 [BOB GITHUB USERNAME]

    Connecting to Machine From Remote Device 

    Gather IP of target device

    ip -br a

        In windows powershell, type the following command:

    ssh BOB@x.BOB@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 user to set their own username and password

    • Appoint user into appropriate group

    Accessing the Proxmox Server

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

    2. Type in the following:

    ssh [host] (the name in the C:\Users\BOB\.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