Skip to content

SSH Connect to Mezz PC#3685

Open
sauravbanna wants to merge 23 commits intomasterfrom
sauravbanna/mezzsh
Open

SSH Connect to Mezz PC#3685
sauravbanna wants to merge 23 commits intomasterfrom
sauravbanna/mezzsh

Conversation

@sauravbanna
Copy link
Copy Markdown
Contributor

@sauravbanna sauravbanna commented Apr 20, 2026

Description

Adds ability to SSH into the Mezz PC.

Warns all new connections if anyone is using the PC remotely or in-person already. Allows users to force a connection. Shows a warning in-person when anyone connects.

Shows the names of all remotely connected users in the warning.

Uses Tailscale as a VPN to get around UBC blocking incoming connections.

Usage

On the client side:

bash mezzsh_keygen.sh to generate a private-public key pair.

To connect:
bash mezzsh_connect.sh

On the Mezz PC side:

mezzsh_setup.sh: sets up the ssh server, dependencies, etc.

mezzsh_server.sh: The script that handles incoming ssh connections

The public key will have to be added to the Mezz PC's authorized keys, using the mezzsh_keystore.sh script

Pictures

image

In-person user warning to the remote user

image

Other remote users warning to the remote user

image

Dialog warning to the in-person user on the Mezz PC

Testing Done

Tested the different scenarios manually:

  1. Connection when no one is using PC (PC is on but logged out)
  2. Connection when PC is logged in IRL
  3. Connection when PC is logged out, but someone is already SSH'd in
  4. Connection when both PC is logged in, and someone is already SSH'd in

Resolved Issues

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

@sauravbanna sauravbanna marked this pull request as ready for review April 20, 2026 10:49
@Mr-Anyone
Copy link
Copy Markdown
Contributor

This is a really cool feature. If I am understanding correctly, we can now connect to the mezz pc even outside of Vancouver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants