Ghost in Shell via SSH
Project description
Ghost in Shell via SSH
# From within TMUX
export SSH_CALLER_PATH=$(mktemp -d); export AGI_SOCK="${SSH_CALLER_PATH}/agi.sock"; export INPUT_SOCK="${SSH_CALLER_PATH}/input.sock"; export OUTPUT_SOCK="${SSH_CALLER_PATH}/text-output.sock"; export NDJSON_OUTPUT_SOCK="${SSH_CALLER_PATH}/ndjson-output.sock"; export MCP_REVERSE_PROXY_SOCK="${SSH_CALLER_PATH}/mcp-reverse-proxy.sock"; ssh -NnT -p 2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no -R /tmux.sock:$(echo $TMUX | sed -e 's/,.*//g') -R "${OUTPUT_SOCK}:${OUTPUT_SOCK}" -R "${NDJSON_OUTPUT_SOCK}:${NDJSON_OUTPUT_SOCK}" -R "${MCP_REVERSE_PROXY_SOCK}:${MCP_REVERSE_PROXY_SOCK}" -R "${INPUT_SOCK}:${INPUT_SOCK}" -L "${AGI_SOCK}:${AGI_SOCK}" user@localhost
Hosting
# Temporary branch installs present until pending PRs close
pip install sshai \
"mcp-proxy@git+https://github.com/johnandersen777/mcp-proxy@mcp_enable_over_unix_socket" \
"mcp@git+https://github.com/johnandersen777/python-sdk@mcp_enable_over_unix_socket" \
"openai-agents@git+https://github.com/johnandersen777/openai-agents-python@additional_properties_dict_keys_mcp_enable_over_unix_socket"
export OPENAI_API_KEY=AAA
sshai --uds /tmp/agi.sock
# Now connect to port 2222
TODOs
- We need to re-try TMUX connect when it doesn't work on ssh client connect
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sshai-0.0.2.tar.gz.
File metadata
- Download URL: sshai-0.0.2.tar.gz
- Upload date:
- Size: 5.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14e877461a65f350e2f735bb8e4c58e1bb65cccf70edfb6511fffd5c5faf6e3
|
|
| MD5 |
7aa604cca5640c67b810d0bb130a3e8a
|
|
| BLAKE2b-256 |
7fa437a674d2870c1d99a78cd3d48131f25b3cfc7d0673dddb59afc7e7faaec3
|
Provenance
The following attestation bundles were made for sshai-0.0.2.tar.gz:
Publisher:
release.yml on publicdomainrelay/sshai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sshai-0.0.2.tar.gz -
Subject digest:
c14e877461a65f350e2f735bb8e4c58e1bb65cccf70edfb6511fffd5c5faf6e3 - Sigstore transparency entry: 200463515
- Sigstore integration time:
-
Permalink:
publicdomainrelay/sshai@d60123795c8c39a4be0bc55e7664ec4ae67e6863 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/publicdomainrelay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d60123795c8c39a4be0bc55e7664ec4ae67e6863 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sshai-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sshai-0.0.2-py3-none-any.whl
- Upload date:
- Size: 5.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a22d192de280c646dd5252e47d2f22025b18886ba21f16257b9104cbd889460
|
|
| MD5 |
295c77f3a5097109cf505d83b381e662
|
|
| BLAKE2b-256 |
9aa245e16f9dd0151a90baa8877f749105578757aa48c7d21eeb860e3cf5d699
|
Provenance
The following attestation bundles were made for sshai-0.0.2-py3-none-any.whl:
Publisher:
release.yml on publicdomainrelay/sshai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sshai-0.0.2-py3-none-any.whl -
Subject digest:
6a22d192de280c646dd5252e47d2f22025b18886ba21f16257b9104cbd889460 - Sigstore transparency entry: 200463516
- Sigstore integration time:
-
Permalink:
publicdomainrelay/sshai@d60123795c8c39a4be0bc55e7664ec4ae67e6863 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/publicdomainrelay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d60123795c8c39a4be0bc55e7664ec4ae67e6863 -
Trigger Event:
push
-
Statement type: