Comments (7)
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.
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.
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.
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.
It will be a pleasure to help you with that. What do you need by identity management?
from blink.
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.
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)
- Feature Request: Ability to easily identify and reorder tabs
- When sending a sequence, want to send Input as an alternative to Send Hex HOT 2
- UI Planning for new settings configurations
- Some options of ssh_config are not supported HOT 20
- Can't opt-out of lockdown mode (tips in bug report) HOT 2
- Snips keyboard shortcut creates conflict HOT 7
- Can’t connect to one host on local network
- Swift Args parser stopped processing Args and flags placed at the end of the command
- Improve information on SSH password prompts HOT 1
- Auto-Lock with configurable timeout options
- A Host may disappear right after creation and show up again seconds later. HOT 1
- Self installing mosh-server HOT 6
- Adding Super and Hyper sequences to modifiers
- Certificate automation HOT 1
- pico, nano, emacs: anything but vi! HOT 1
- While it’s possible to add/delete hosts, key, certificates, there’s no reasonable way to manage known_hosts HOT 1
- `du -sh` hangs the shell
- Port forwarding exposes services to the local network HOT 3
- SSH may need to be updated to properly handle Terrapin attack HOT 6
- Cannot apply to back for school HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blink.