Skip to content

Conversation

@aadit-juneja
Copy link

@aadit-juneja aadit-juneja commented Oct 30, 2025

A serverless SSH proxy example on modal with automated lifecycle management. README has full details.

Type of Change

  • New example for the GitHub repo

Documentation Site Checklist

Outside Contributors

You're great! Thanks for your contribution.

@charlesfrye
Copy link
Collaborator

🚀 The docs preview is ready! Check it out here: https://modal-labs-examples--frontend-preview-bfedd8e.modal.run

@charlesfrye
Copy link
Collaborator

🚀 The docs preview is ready! Check it out here: https://modal-labs-examples--frontend-preview-ef4fc35.modal.run

@charlesfrye
Copy link
Collaborator

🚀 The docs preview is ready! Check it out here: https://modal-labs-examples--frontend-preview-6e25ccd.modal.run

@aadit-juneja aadit-juneja changed the title Aadit/ssh proxy Serverless SSH Proxy Oct 30, 2025
@aadit-juneja aadit-juneja changed the title Serverless SSH Proxy SSH Proxy with Automated Container Lifecycle Management Oct 30, 2025
@paulgb
Copy link
Member

paulgb commented Nov 4, 2025

hmm, I get protoc errors when building

Caused by:
  process didn't exit successfully: `/ssh-proxy/target/release/build/ssh_proxy-c42d21ac6f907ca4/build-script-build` (exit status: 1)
  --- stderr
  Error: Custom { kind: Other, error: "protoc failed: api.proto: This file contains proto3 optional fields, but --experimental_allow_proto3_optional was not set.\n" }

Seems debuggable but I haven't dove in, I'm curious if yours gets past this?

@aadit-juneja
Copy link
Author

@paulgb I initially worked on it via my devbox and just tried it locally. I didn't run into the proto issues but just pushed a change to use the modal @app.local_entrypoint decorator in the deploy script. Not sure if that's related but could you try again now?

Also did you set the environment variables? There should be four:
MODAL_TOKEN_ID
MODAL_TOKEN_SECRET
SSH_PUBLIC_KEY
MODAL_ENVIRONMENT_NAME

@charlesfrye
Copy link
Collaborator

🚀 The docs preview is ready! Check it out here: https://modal-labs-examples--frontend-preview-abf67e5.modal.run

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.

4 participants