Can opencode ssh into and access a remote machine #3133

Open
opened 2026-02-16 17:38:47 -05:00 by yindo · 5 comments
Owner

Originally created by @sai-sy on GitHub (Nov 26, 2025).

Question

If I ask opencode (gpt-5-codex) to run openMySSH command which has my creds preloaded, will it be able to run that command and then work on the remote machine?

Originally created by @sai-sy on GitHub (Nov 26, 2025). ### Question If I ask opencode (gpt-5-codex) to run `openMySSH` command which has my creds preloaded, will it be able to run that command and then work on the remote machine?
Author
Owner

@github-actions[bot] commented on GitHub (Nov 26, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #2963: Run agent remote sessions transparently aka Warpify - Similar feature request about running opencode locally with agent working on remote machine
  • #2843: Can't use on remote machine via SSH — issues with text rendering / layout - User trying to use opencode on remote machine via SSH
  • #3320: Bash commands not working in ssh session - User having issues running bash commands in SSH session
  • #2773: clipboard copy not works in remote SSH console - User attempting to use opencode in remote SSH console

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 26, 2025): This issue might be a duplicate of existing issues. Please check: - #2963: Run agent remote sessions transparently aka Warpify - Similar feature request about running opencode locally with agent working on remote machine - #2843: Can't use on remote machine via SSH — issues with text rendering / layout - User trying to use opencode on remote machine via SSH - #3320: Bash commands not working in ssh session - User having issues running bash commands in SSH session - #2773: clipboard copy not works in remote SSH console - User attempting to use opencode in remote SSH console Feel free to ignore if none of these address your specific case.
Author
Owner

@sai-sy commented on GitHub (Nov 26, 2025):

Actually just tried it and got ths. Maybe a good feature request:

openTMUServer -w opens an interactive remote shell, but from this environment I can’t stay inside that session to run
additional commands (like cat s27syed.cnf). If you can provide a non-interactive command (e.g., ssh ... 'cat s27syed.cnf') or
the file’s content/path directly, I can help from there.

@sai-sy commented on GitHub (Nov 26, 2025): Actually just tried it and got ths. Maybe a good feature request: openTMUServer -w opens an interactive remote shell, but from this environment I can’t stay inside that session to run additional commands (like cat s27syed.cnf). If you can provide a non-interactive command (e.g., ssh ... 'cat s27syed.cnf') or the file’s content/path directly, I can help from there.
Author
Owner

@benceferdinandy-signifyd commented on GitHub (Nov 26, 2025):

you can prefix any command with ssh and it will be executed on the machine. I had a Sonnet session that navigated a server without any issues after I told it how to ssh into it.

@benceferdinandy-signifyd commented on GitHub (Nov 26, 2025): you can prefix any command with ssh and it will be executed on the machine. I had a Sonnet session that navigated a server without any issues after I told it how to ssh into it.
Author
Owner

@nan-kyu commented on GitHub (Nov 26, 2025):

I create a mounting point/dir for my remote machines on my local, and then connect them via SSHFS. I then create a README in the mount dir to tell AI what's in/on the machine, how to mount it and how to access it via SSH, etc. That way, with every new chat session, you just tell AI to read the README, and you're good to go.

This way you're also not running the model on the remote machine, its ran locally - great for remote instances with small resources.

@nan-kyu commented on GitHub (Nov 26, 2025): I create a mounting point/dir for my remote machines on my local, and then connect them via SSHFS. I then create a README in the mount dir to tell AI what's in/on the machine, how to mount it and how to access it via SSH, etc. That way, with every new chat session, you just tell AI to read the README, and you're good to go. This way you're also not running the model on the remote machine, its ran locally - great for remote instances with small resources.
Author
Owner

@itsanishjain commented on GitHub (Feb 12, 2026):

That's super strange Claude Code can easily do this kind of stuff.

@itsanishjain commented on GitHub (Feb 12, 2026): That's super strange Claude Code can easily do this kind of stuff.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3133