Skip to content

Add Default cloud environment setup script for VPS SSH access - #1

Draft
SomeRandmGuyy wants to merge 1 commit into
mainfrom
claude/default-cloud-vps-ssh-v71jzy
Draft

Add Default cloud environment setup script for VPS SSH access#1
SomeRandmGuyy wants to merge 1 commit into
mainfrom
claude/default-cloud-vps-ssh-v71jzy

Conversation

@SomeRandmGuyy

Copy link
Copy Markdown
Contributor

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:
    • installs openssh-client + sshpass (the cloud image ships without them)
    • adds a Python ProxyCommand that tunnels SSH through the session's $HTTPS_PROXY (cloud sessions have no direct outbound TCP)
    • writes an ssh host alias vps and a vps <cmd> wrapper
    • on first login installs a per-session ed25519 key on the VPS so the password is used only once per session
  • README.md – documents the configuration steps.

Credentials

The root password is not in this repo. The script reads it from the VPS_SSH_PASSWORD environment variable, which must be set as a secret on the Default environment (host/user/port are overridable via VPS_HOST, VPS_USER, VPS_PORT).

Follow-up needed by a human

  • Set VPS_SSH_PASSWORD on the Default environment.
  • Ensure the environment's network policy allows 187.77.130.10:22 (direct port 22 was unreachable from this session, and the egress proxy may need the destination allow-listed).
  • Recommended: rotate the root password (it was shared in chat) and consider disabling password auth on the VPS once key auth is in place.

🤖 Generated with Claude Code

https://claude.ai/code/session_01MTxoVXo7xHYVQ2kJDVqmWW


Generated by Claude Code

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
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.

1 participant