GithubHelp home page GithubHelp logo

Comments (17)

ralimi avatar ralimi commented on May 20, 2024 1

This will be released in version 0.0.25, which is now pending review in the Chrome Web Store.

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

i found mosh in secure shell extension.
however, i couldn't use the chrome ssh agent.

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

I tried this out, and it seems to hang for me when connecting after detecting that it requires public key authentication.

What I've done so far:

  • In the mosh connection setup, I set the SSH agent ID to eechpbnaifiimgajnomdipfaamobdfha
  • Installed mosh on the server to which I'm trying to login.
  • Validated in the console (under Chrome Developer tools) for this extension (SSH Agent for Google Chrome) that there are messages to and from the SSH agent.

What would be really helpful is to pass -vvv to the ssh client process started by mosh to see where it's getting hung up, but I haven't figured out how to do that. I suspect I'm missing something obvious.

@rpwoodbu do you have any insight on how best to see what's happening inside of mosh? Or, do you have any background on what we should expect here?

from chrome-ssh-agent.

rpwoodbu avatar rpwoodbu commented on May 20, 2024

The web-based Mosh implementation actually doesn't use OpenSSH under the hood (uses libssh), so -vvv is not meaningful here. I would try starting an ordinary SSH session from the Secure Shell app to debug authentication issues first, as that does afford more debuggability.

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

hello friends,
my 2 pence.
i have also tried mosh with the agent, and there's a clear error in the chrome dev console.
mosh does expect some object, and it receives an array of bytes from the agent.
since the agent is already working with some extensions, I'd incline to implement in mosh the parsing of that array.
though I've never tried the world of binaries compiled for the web yet.
all my best,
a.

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

Thanks @alexbodn - yes, that aligns with my test. The ssh agent extension works correctly for me for ordinary ssh sessions (when not using mosh).

from chrome-ssh-agent.

vapier avatar vapier commented on May 20, 2024

the problem is that the gnubby extension always sends messages using the format:

{
  type: "[email protected]",
  data: [...]   // Array of integers
}

this extension however omits type in its messages.

it woks with Secure Shell because it doesn't care -- it only looks for .data. mosh however has a check:

    this.agentPort_.onMessage.addListener(function(message) {
      if (message['type'] !== '[email protected]') {
        console.error('Got unexpected message from SSH agent:');
        console.error(message);
        return;
      }

so we could omit the .type check in mosh, or, more easier, change this extension to fill out the .type field. then it would just work with mosh.

i don't think the protocol is documented anywhere.

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

Ah - thank you @vapier! I can't think of a downside to just also setting the type in the ssh agent extension. I can give that a try.

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

thank you rich.
how can i install the review version?

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

Once it is published in the web store, you should get the new version automatically.

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

Ah - I see.

If you are okay with installing it locally, you could use the zip file from the releases page (https://github.com/google/chrome-ssh-agent/releases/tag/v0.0.25). There are a number of guides available for installing extensions from zip files.

NOTE: That this would not be a signed copy, as that is only available after being published in the Web Store.

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

from chrome-ssh-agent.

ralimi avatar ralimi commented on May 20, 2024

It sounds like that is separate from the subject of this issue, right? If so, can you please file a separate issue?

from chrome-ssh-agent.

alexbodn avatar alexbodn commented on May 20, 2024

I've reported the secure shell dev regression at
https://bugs.chromium.org/p/chromium/issues/detail?id=1411180

thank you very much

from chrome-ssh-agent.

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.