"Log" Terminal is locked for input so I cannot enter 'yes' to clone repository into the devcontainer build. This causes the build to fail.
Does anyone have a solution?
Windows 11, WSL2, VSCode devcontainers.
Hi @exciteresearch and welcome to the community!
Looking at the screenshot you shared, it looks like the git clone command runs in a container. Before the git clone command runs, the known_hosts file from
C:\Users\<your_user>\.ssh\known_hosts
gets copied in the container to
root/.ssh/known_hosts
The issue may be resolved if you simply save Bitbucket's host keys in the file C:\Users\<your_user>\.ssh\known_hosts on the computer where this is running.
You can find Bitbucket's host keys here:
You can copy the content on that page and paste it into C:\Users\<your_user>\.ssh\known_hosts, save the file and then perform whatever action you performed when you got this error.
Regarding VS Code's terminal not accepting input, this may be a limitation of VS Code. You will need to reach out to the product's support team to find out. However, ensuring that Bitbucket's host keys are in C:\Users\<your_user>\.ssh\known_hosts (so that they get copied into the container) will most likely solve the issue.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.