devpod icon indicating copy to clipboard operation
devpod copied to clipboard

ssh error

Open shenmingming opened this issue 2 years ago • 9 comments

Run init provider command: ssh - oStrictHostKeyChecking=no -p ${PORT} ${EXTRA_FLAGS} "${HOST}" sh -c ""if [ $(id -ru) -eq 0 ]; then exit 0; fi; if (! mkdir -p $(dirname ${AGENT_PATH}) || [ ! -w $(dirname ${AGENT_PATH}) ]) && ! sudo -nl >/dev/null; then echo $AGENT_PATH is not writable, passwordless sudo or root user required; exit 1; fi; if ! command -v ${DOCKER_PATH} >/dev/null && ! sudo -nl >/dev/null; then echo $DOCKER_PATH not found, passwordless sudo or root user required; exit 1; fi "" if [ $? != 0 ]; then

&2 echo "Unexpected non-zero ssh exit &2 echo "Please make sure you have configured the correct SSH host" &2 echo "and the following command can be executed on your system:" &2 echo ssh -oStrictHostKeyChecking=no -p "${PORT}" "${HOST}" exit 1 fi "ssh": executable file not found in $PATH Unexpected non-zero ssh exit code Please make sure you have configured the correct SSH host and the following command can be executed on your system: ssh -oStrictHostKeyChecking=no -p 22 root@ip exit status 1 init github.com/loftsh/devpod/cmd/provider.initProvider

shenmingming avatar Jul 03 '23 10:07 shenmingming

image

shenmingming avatar Jul 03 '23 10:07 shenmingming

Hi @shenmingming , thank you for opening the issue. I assume you're using the SSH provider, how would you connect to it without DevPod?

pascalbreuninger avatar Jul 03 '23 12:07 pascalbreuninger

Hello, the local computer (windows 10) installed Devpod client, want to connect through SSH, the local and the current SSH host have installed OpenSSH, mutual access is through, the following exceptions are reported: Extra Flags Extra flags to pass to the SSH command. Enter Extra Flags Agent options Add Provider Set as default "ssh": executable file not found in $PATH Unexpected non-zero ssh exit code Please make sure you have configured the correct SSH host and the following command can be executed on your system: ssh -oStrictHostKeyChecking=no -p 22 root@IP init: exit status I hope you can help me. Thank you

shenmingming avatar Jul 04 '23 03:07 shenmingming

are you sure ssh is accessible from your $PATH? What happens if you type ssh in the regular command line?

pascalbreuninger avatar Jul 04 '23 05:07 pascalbreuninger

image image

The first image is SSH accessed from a local computer, and the second image is SSH accessed from an external IP address

shenmingming avatar Jul 04 '23 05:07 shenmingming

Alright, thank you. I will need to investigate a bit more then, might be related to other windows ssh problems

pascalbreuninger avatar Jul 05 '23 04:07 pascalbreuninger

Thank you. You can try using the Devpod Windows client to SSH connect on your own. We look forward to your reply.

shenmingming avatar Jul 05 '23 06:07 shenmingming

Do you need to install a development environment for Go?

shenmingming avatar Jul 05 '23 06:07 shenmingming

Not if you downloaded the CLI/Desktop app

pascalbreuninger avatar Jul 05 '23 08:07 pascalbreuninger

@shenmingming are you still experiencing this problem with newer versions of DevPod?

pascalbreuninger avatar Apr 17 '24 19:04 pascalbreuninger