Giter VIP home page Giter VIP logo

Comments (9)

waddahAldrobi avatar waddahAldrobi commented on July 20, 2024

How did you get your Okteta:Up to work? Mine fails at that command.

image

from remote-kubernetes.

stefanfritsch avatar stefanfritsch commented on July 20, 2024

Easy: It just worked....until it didn't :)

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 20, 2024

thanks for reporting, we're looking into it! What kubernetes version distribution are you using @stefanfritsch @waddahAldrobi ?

from remote-kubernetes.

stefanfritsch avatar stefanfritsch commented on July 20, 2024

@rberrelleza thanks for looking into it.

The cluster was created with rke 1.2

from remote-kubernetes.

stefanfritsch avatar stefanfritsch commented on July 20, 2024

I also tried it with a k3s cluster. Same issue

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 20, 2024

we haven't been able to replicate this issue. Could you try and see if it still reproduces with the version 0.3.4 of the extension? If it does reproduce, could you share your $HOME/.ssh/config file with us, as well as the version of your SSH client?

from remote-kubernetes.

stefanfritsch avatar stefanfritsch commented on July 20, 2024

Sorry this took so long:

ssh-version

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Application     ssh.exe                                            8.1.0.1    C:\WINDOWS\System32\OpenSSH\ssh.exe

.ssh/config

And the entry in .ssh/config is

# entry generated by okteto
Host hello-world.okteto
  ForwardAgent yes
  PubkeyAcceptedKeyTypes +ssh-rsa
  HostName localhost
  Port 22100
  StrictHostKeyChecking no
  UserKnownHostsFile /dev/null
  IdentityFile "C:\Users\StefanFritsch\.okteto\id_rsa_okteto"

Everything else in .ssh/config are other host directives that do not conflict with this one.

New developments

VPN

The connection is through a wireguard VPN which might be the problem? But using ssh-remote to other servers over the VPN works fine.

ssh-connection

The ssh-connection itself is fine. I can connect to the container from a powershell window using the .ssh/config entry. I

PS C:\Users\StefanFritsch> ssh hello-world.okteto
Warning: Permanently added '[localhost]:22100' (RSA) to the list of known hosts.
Welcome to your development container. Happy coding!
stefan-fritsch:hello-world okteto>

Error message

The error message has changed slightly since the last time. It now also complains about "channel 3", whatever that is.

Warning: Permanently added '[localhost]:22100' (RSA) to the list of known hosts.
SSH_AUTH_SOCK=/tmp/auth-agent230119601/listener.sock
Connected to SSH Host - Please do not close this terminal
channel 2: open failed: unknown channel type: unsupported channel type
channel 3: open failed: unknown channel type: unsupported channel type
channel 2: open failed: unknown channel type: unsupported channel type

The following error notification is also new (although I'm not yet 100% certain it's okteto as some extensions just got updated):

Failed to connect to the remote extension host server (Error: WebSocket close with status code 1006)

from remote-kubernetes.

rberrelleza avatar rberrelleza commented on July 20, 2024

This is fixed in the 0.4.1 release

from remote-kubernetes.

stefanfritsch avatar stefanfritsch commented on July 20, 2024

@rberrelleza today I had the opportunity to try the extension again and it's still broken in 0.4.3. Both with Windows ssh 8.9 as well as with git ssh 8.8 (see below)

Same issue as before:

The ssh tunnel terminal

Warning: Permanently added '[localhost]:22100' (RSA) to the list of known hosts.
Connected to SSH Host - Please do not close this terminal
channel 2: open failed: unknown channel type: unsupported channel type
channel 3: open failed: unknown channel type: unsupported channel type
channel 2: open failed: unknown channel type: unsupported channel type

The javascript console in the developer tools

ERR WebSocket close with status code 1006: Error: WebSocket close with status code 1006
    at WebSocket.<anonymous> (vscode-file://vscode-app/c:/Users/StefanFritsch/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:611:39219)

Current OS

  • OS: Windows 11 21H2
  • SSH: OpenSSH_for_Windows_8.9p1, LibreSSL 3.4.3

I also tried it using the ssh of git bash (C:\Program Files\Git\usr\bin\ssh.exe):

  • SSH: OpenSSH_8.8p1

With WSL2 it doesn't work because okteto only listens on localhost and is not accessible from WSL2 afaics.

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.