Overview
Concrete tool for configuring the jcode TUI to connect to a remote daemon over SSH, provided by the jcode CLI flags.
Description
The SSH CLI flags (--ssh, --remote-working-dir, --ssh-binary) configure the local TUI to connect to a remote jcode daemon through an SSH tunnel. The --ssh flag specifies the remote host (user@host:port), --remote-working-dir sets the workspace on the remote, and --ssh-binary overrides the SSH binary path. The /login command authenticates through the SSH bridge, and /login --import-local uploads local credentials to the remote host.
Usage
- Connect to remote:
jcode --ssh user@host --remote-working-dir /project
- Remote login:
/login in the TUI to authenticate through SSH.
- Import local credentials:
/login --import-local to upload local auth files.
- Resume remote session:
jcode --ssh user@host --resume <session_id>
Code Reference
Source Location
- Repository: jcode
- File: docs/NATIVE_SSH.md, tests/test_native_ssh_cli.py, tests/test_native_ssh_login.py, tests/test_native_ssh_import.py
Signature
# CLI flags (External Tool Doc — documented via docs/NATIVE_SSH.md):
jcode --ssh <user@host:port> \
--remote-working-dir <dir> \
--ssh-binary <path> \
[--resume <session_id>]
# TUI commands:
/login # OAuth flow through SSH bridge
/login --import-local # Upload local credentials to remote
Import
# No import — CLI flags are parsed by the jcode CLI dispatch.
I/O Contract
Inputs
| Name |
Type |
Required |
Description
|
| --ssh |
string |
Yes /// Remote host spec: user@host:port
|
| --remote-working-dir |
string |
No /// Workspace path on remote host
|
| --ssh-binary |
string |
No /// Custom SSH binary path (default: ssh)
|
| --resume |
string |
No /// Session ID to resume on remote
|
Outputs
| Name |
Type |
Description
|
| tunnel |
SSH /// Established SSH tunnel to remote daemon
|
| TUI |
process /// Local TUI connected to remote daemon
|
Usage Examples
Connect to Remote Workspace
# Connect to a remote host and work in a specific directory
jcode --ssh dev@gpu-server --remote-working-dir /home/dev/project
Import Local Credentials
# Inside the TUI after connecting:
/login --import-local
# Uploads ~/.jcode/auth.json and provider credentials to remote
Resume Remote Session
# Resume a session on the remote host
jcode --ssh dev@gpu-server --resume clever-penguin
Related Pages
Implements Principle
Requires Environment
Uses Heuristics
Page Connections
Double-click a node to navigate. Hold to expand connections.