Giter Club home page Giter Club logo

Comments (7)

carloscabanero avatar carloscabanero commented on May 18, 2024

Did you add the -I option to indicate the key to use? Only if called id_rsa it will be used by default.

from blink.

dakira avatar dakira commented on May 18, 2024

Hey. After your comments I got it to work. Both -l and renaming the key to id_rsa work fine. It is odd, though, that I get the passwort prompt at all, as password authentication is disabled on the server. Using mosh on my PC I can make the following observations:

  • given I have multiple arbitrarily named private keys, mosh (or SSH?) picks the right one for the server I'm connecting to and asks me the passphrase. If I enter the wrong passphrase the connection drops (in Blink I get a password prompt after the passphrase prompt even though password authentication is disabled)
  • if I don't have a suitable key, the connection immediately drops (Permission denied (publickey)). With Blink, I still get a password prompt.

Is it possible to ask the SSH server whether to use key or password auth?

Also: the usage of -l and naming the key id_rsa is not obvious. If only one key exists, I'd default to that.

from blink.

carloscabanero avatar carloscabanero commented on May 18, 2024

Thanks for your four detailed response, I agree and will mark as bug to fix on next version. Blink defaults to password even if the server didn't return it, I had to force it before and forgot to remove it. Will be fixed on next version.

About using just whatever key exists as default, I'm not a fan of passing a key to a server that didn't request it, even if we do not support agents or other possible corner cases at the moment. I'd say id_rsa is the known behavior, and once we have Hosts configuration (similar to .ssh/hosts), it should simplify everything too.

from blink.

binaryben avatar binaryben commented on May 18, 2024

Semi related - Hopefully some kind of identity and key management is the next priority after SSH? That is what is keeping me from deleting my default WebSSH iOS app. :)

from blink.

carloscabanero avatar carloscabanero commented on May 18, 2024

It will be a pleasure to help you with that. What do you need by identity management?

from blink.

goerz avatar goerz commented on May 18, 2024

I would propose that in the dialogue for generating new keys, the "Key" field ("Enter a name for the key") should be pre-filled with the default id_rsa value. Also, the message "Default key must be named 'id_rsa" should turn red (or be otherwise highlighted) if the default name is changed, to make it clear that the key will not be used by default.

from blink.

carloscabanero avatar carloscabanero commented on May 18, 2024

Closing as this isn't a bug anymore, and the proposal by @goerz will be fixed on #91
Have to decide whether "repurposing" issues like this one is better than creating new ones, to not loose the comments and participants.

from blink.

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.