okteto / remote-kubernetes

Remote Kubernetes Development in VS Code with Okteto
Apache License 2.0
74 stars 15 forks source link

The remote window fails to start if `scp` is not installed in the dev image #199

Closed rberrelleza closed 1 month ago

rberrelleza commented 2 years ago

Describe the bug The remote-ssh extension is now using SCP to copy the vscode server to the remote dev container. If scp is not available, the command hangs and eventually it fails. image

To Reproduce Steps to reproduce the behavior:

  1. Clone https://github.com/okteto/python-getting-started
  2. Execute the okteto: up command in VSCode

Expected behavior The remote window should open

Additional context The current workaround is to install openssh-client in the dev file.

snowman2 commented 1 year ago

I am having a similar issue in https://github.com/okteto/okteto/issues/3459.

Did you add this to your dev file or something else: command: yum update && yum install -y openssh-client && bash

snowman2 commented 1 year ago

Looks like you need to install the SSH server on the remote machine.

References:

snowman2 commented 1 year ago

Adding this to the okteto yaml fixed the issue:

command: yum update && yum install -y openssh-server && systemctl start sshd.service && systemctl enable sshd.service && bash
rberrelleza commented 1 month ago

we'll document the requirements for the dev container on the readme instead of injecting files on demand.