remote-kubernetes
remote-kubernetes copied to clipboard
The remote window fails to start if `scp` is not installed in the dev image
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.
To Reproduce Steps to reproduce the behavior:
- Clone https://github.com/okteto/python-getting-started
- 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.
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
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
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