Giter VIP home page Giter VIP logo

Comments (11)

RedRoserade avatar RedRoserade commented on July 2, 2024 1

@rberrelleza Sure, I will try it tomorrow on my work machine and I'll add my feedback here.

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024 1

thanks for checking, I'll update the extension as soon as possible

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024

Thanks for the thorough analysis @RedRoserade ! so, do you think if we generate ed25519 keys, that should fix the issue for everyone? (have to check if windows supports that, but my guess is that it should).

from remote-kubernetes.

RedRoserade avatar RedRoserade commented on July 2, 2024

I think it should, though I cannot be sure, only testing would tell. According to the Arch Wiki, ed25519 keys have been supported since OpenSSH 6.5, which dates back to 2014: https://wiki.archlinux.org/index.php/SSH_keys#Ed25519

The same algorithm is documented in Windows Server documentation, so there's a good chance it works there too: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_keymanagement

And, since these keys are used only for connecting to remote Okteto instances, it should be fine.

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024

Sounds like ed25519 is a good candidate for them. The root cause of the issue is on okteto/okteto, once okteto/okteto#1351 is merged and released, we'll update it on the plugin.

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024

We had some issues with compatibility with ed25519, so we'll start by adding the PubkeyAcceptedKeyTypes key first, while we work on supporting ed25519.

from remote-kubernetes.

RedRoserade avatar RedRoserade commented on July 2, 2024

I see, I was concerned that could happen. I'd say that the workaround will be good enough for now, too.

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024

@RedRoserade could you try the build from master to make sure if solves the issue? The extension has a setting to pass a binary instead of using the expected version. You can build it yourself, or use https://downloads.okteto.com/cli/master/okteto-Linux-x86_64

from remote-kubernetes.

RedRoserade avatar RedRoserade commented on July 2, 2024

@rberrelleza It works; after compiling locally, deleting previous ssh keys, and changing the paths, this is what I get on my ssh config:

# entry generated by okteto
Host cps-api.okteto
  ForwardAgent yes
  PubkeyAcceptedKeyTypes +ssh-rsa
  HostName localhost
  Port 36043
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null
  IdentityFile "/home/$USER/.okteto/id_rsa_okteto"

And most importantly, VSCode connects.

Thank you!

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 2, 2024

version 0.2.1 has the fix, if you want to try it out @RedRoserade

from remote-kubernetes.

RedRoserade avatar RedRoserade commented on July 2, 2024

Already have, it works well. Thanks!

from remote-kubernetes.

Related Issues (20)

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.