Skip to content

[Bug]: ssh provider workspace doesn't start when zsh is the default user shell #1621

Open

Description

@souryavarenya

Before submitting

  • I have searched existing issues to confirm this is not a duplicate
  • I am running the latest version of Devsy

What happened?

I'm trying to run devsy via ssh provider on one of my servers whose user has default shell zsh

Running into:

ERROR   main:7: command not found: sh -c

Once I have chsh -s /bin/bash on the remote server, it works again.

What did you expect to happen instead?

Launch my editor upon successful copy

Steps to reproduce

  1. setup remote server with zsh as default shell: chsh -s /bin/zsh
  2. Add ssh provider: devsy provider add ssh --name server -o HOST=user@server
  3. Try to launch a workspace: devsy workspace --provider server .

devcontainer.json

Error output / logs

2026-10-20T16:18:03.693+0200    DEBUG   adding SSH keys to agent
2026-10-20T16:18:03.694+0200    DEBUG   running ssh-add: privateKeyPath=/home/sourya/.ssh/id_ed25519
2026-10-20T16:18:03.695+0200    DEBUG   injecting and running SSH server command: "'/tmp/sourya/devsy/agent' internal ssh-server --stdio --debug"
2026-10-20T16:18:03.695+0200    DEBUG   starting agent injection
2026-10-20T16:18:03.695+0200    DEBUG   start inject
2026-10-20T16:18:03.695+0200    DEBUG   prefer downloading agent from URL: url=https://github.com/devsy-org/devsy/releases/download/v1.24.0
2026-10-20T16:18:03.695+0200    DEBUG   execute inject script
2026-10-20T16:18:03.707+0200    DEBUG   tunnel: setup start
2026-10-20T16:18:03.707+0200    DEBUG   creating SSH client
2026-10-20T16:18:03.956+0200    DEBUG   handshake complete elapsed=260.454959ms
2026-10-20T16:18:03.971+0200    DEBUG   done exec
2026-10-20T16:18:03.971+0200    DEBUG   done inject
2026-10-20T16:18:03.972+0200    DEBUG   payload delivered elapsed=276.364386ms
2026-10-20T16:18:03.972+0200    DEBUG   done injecting
2026-10-20T16:18:03.972+0200    DEBUG   complete elapsed=276.640138ms
2026-10-20T16:18:03.972+0200    DEBUG   retrying injection: [inject] 2026-10-20T16:18:03.965+0200       ERROR   main:7: command not found: sh -c


read inject signal: EOF
2026-10-20T16:18:14.663+0200    DEBUG   start inject
2026-10-20T16:18:14.663+0200    DEBUG   prefer downloading agent from URL: url=https://github.com/devsy-org/devsy/releases/download/v1.24.0
2026-10-20T16:18:14.663+0200    DEBUG   execute inject script
2026-10-20T16:18:14.952+0200    DEBUG   handshake complete elapsed=288.553288ms
2026-10-20T16:18:14.966+0200    DEBUG   done exec
2026-10-20T16:18:14.966+0200    DEBUG   done inject
2026-10-20T16:18:14.967+0200    DEBUG   payload delivered elapsed=303.859002ms
2026-10-20T16:18:14.967+0200    DEBUG   done injecting
2026-10-20T16:18:14.967+0200    DEBUG   complete elapsed=304.105295ms
2026-10-20T16:18:14.967+0200    DEBUG   retrying injection: [inject] 2026-10-20T16:18:14.961+0200       ERROR   main:7: command not found: sh -c

How often does this happen?

Every time

Operating system

Linux

Linux distribution (if applicable)

No response

Architecture

AMD64

Desktop app or CLI?

Both

Devsy version

v1.24.0

Devsy provider

SSH

Provider version

v1.1.44

Screenshots

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions