pcarrier / srv.us

ssh to expose local HTTP services online, CLI pastebin, etc.
https://docs.srv.us
BSD Zero Clause License
87 stars 8 forks source link

Named GitHub subsubdomains #9

Closed pcarrier closed 2 years ago

pcarrier commented 2 years ago

A tunnel with an SSH key registered in GitHub could also be exposed as https://pcarrier.gh.srv.us/ for port 1, https://pcarrier--2.gh.srv.us/ for port 2.

We could automatically find the SSH keys based on the SSH username, fetching https://github.com/$user.keys and confirming the key is included.