Git Product home page Git Product logo

Comments (1)

cmhh avatar cmhh commented on August 27, 2024

Hi Shriv

Sorry, I didn't get an email notification and didn't see this issue till just now.

It definitely seems the ssh keys don't match, since the whole point was to avoid the use of a password. If you're sure you're copying the keys out of ~/.ssh in your WSL2 distro then it should work. One way to check would be to connect to the container from the WSL2 terminal and then check the environment variables. So:

docker exec -it <name of container> /bin/bash

will get you to the terminal of the development container, and then you can just do:

echo "$PUB_KEY"

and

cat ~/.ssh/authorized_keys

These should match, and they should also match the contents of ~/.ssh/id_rsa.pub in your WSL2 distro. Note that vscode has extensions specifically for connecting to containers which might be a bit more streamlined, but I've not tested it out yet. Perhaps I'll update that post after I've tested it out.

from cmhh.github.io.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.