remote-kubernetes icon indicating copy to clipboard operation
remote-kubernetes copied to clipboard

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

Open rberrelleza opened this issue 2 years ago • 3 comments

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.

rberrelleza avatar Jul 01 '22 05:07 rberrelleza

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 avatar May 17 '23 18:05 snowman2

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

References:

  • https://code.visualstudio.com/docs/remote/ssh
  • https://code.visualstudio.com/docs/remote/troubleshooting#_installing-a-supported-ssh-server

snowman2 avatar May 17 '23 18:05 snowman2

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

snowman2 avatar May 17 '23 18:05 snowman2