balena-io / balena-cli

The official balena CLI tool.
Apache License 2.0
453 stars 138 forks source link

resin local ssh fails on Windows 10 with a syntax error #876

Closed pcarranzav closed 4 years ago

pcarranzav commented 6 years ago

From the forums: https://forums.resin.io/t/resin-local-ssh-on-win10-syntax-error-near-unexpected-token-then/3066

Local ssh ("resin local ssh ") fails with the following error when trying to connect, both to supervisor, and local app:

sh: -c: line 0: syntax error near unexpected token then' sh: -c: line 0:(if [ -f /usr/bin/balena ]; then echo \"balena\"; else echo \"docker\"; fi) exec -ti 748901cc1e35a844b777ca9d62126b8ebf19253873f4b75c0cc0edb24ef227b8 /bin/sh -c ‘if [ -e /bin/bash ]; then exec /bin/bash; else exec /bin/sh; fi’"’

Front logo Front conversations

pdcastro commented 4 years ago

I have just tested balena ssh on Windows 10 with both an IP address and a device UUID, and it worked. As of CLI v11 (currently 11.18.3), the resin local ssh command was replaced with balena ssh, and it now supports multicontainer devices as well, opening a shell directly in the container.