Add Default cloud environment setup script for VPS SSH access - #1
Draft
SomeRandmGuyy wants to merge 1 commit into
Draft
Add Default cloud environment setup script for VPS SSH access#1SomeRandmGuyy wants to merge 1 commit into
SomeRandmGuyy wants to merge 1 commit into
Conversation
Adds .claude/environments/default-setup.sh, the setup-script section for the Default Claude Code cloud environment. It installs an SSH client, tunnels SSH through the session's HTTPS egress proxy, defines a vps host alias and wrapper, and installs a per-session key on the VPS after a first password login. The password is read from the VPS_SSH_PASSWORD environment secret and is never committed. README documents the configuration steps. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MTxoVXo7xHYVQ2kJDVqmWW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the setup script section for the Default Claude Code cloud environment so every cloud session gets an SSH connection to the SWC VPS.
.claude/environments/default-setup.sh– paste into Environments → Default → Setup script. It:openssh-client+sshpass(the cloud image ships without them)ProxyCommandthat tunnels SSH through the session's$HTTPS_PROXY(cloud sessions have no direct outbound TCP)sshhost aliasvpsand avps <cmd>wrapperREADME.md– documents the configuration steps.Credentials
The root password is not in this repo. The script reads it from the
VPS_SSH_PASSWORDenvironment variable, which must be set as a secret on the Default environment (host/user/port are overridable viaVPS_HOST,VPS_USER,VPS_PORT).Follow-up needed by a human
VPS_SSH_PASSWORDon the Default environment.187.77.130.10:22(direct port 22 was unreachable from this session, and the egress proxy may need the destination allow-listed).🤖 Generated with Claude Code
https://claude.ai/code/session_01MTxoVXo7xHYVQ2kJDVqmWW
Generated by Claude Code