Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rmview keeps asking for passphrase on connect despite having key added to keychain #75

Open
siraben opened this issue May 14, 2021 · 5 comments
Labels
docs Improvements or additions to documentation

Comments

@siraben
Copy link

siraben commented May 14, 2021

rmview keeps asking for SSH passphrase when I run it from the command line, is it not using the keychain?

config.json

{
    "ssh": {
        "address": ["10.11.99.1", "192.168.0.100"],
        "username": "root",
        "key": "~/.ssh/id_rsa",
        "timeout": 2,
        "auth_method": "key"
    },
    "orientation": "portrait",
    "pen_size": 10,
    "pen_color": "red",
    "pen_trail": 200,
    "background_color": "black",
    "hide_pen_on_press": false
}
@siraben siraben changed the title rmview keeps asking for SSH rmview keeps asking for SSH on connect despite having key added to keychain May 14, 2021
@siraben siraben changed the title rmview keeps asking for SSH on connect despite having key added to keychain rmview keeps asking for passphrase on connect despite having key added to keychain May 14, 2021
@siraben
Copy link
Author

siraben commented Jul 3, 2021

@bordaigorl ping

@bordaigorl
Copy link
Owner

bordaigorl commented Jul 3, 2021

Could you try the devel branch? The logic around ssh connections changed a little (although I suspect your issue would still be there).
The paramiko configuration bit of the code could do with a bit of rewriting (expert advice welcome).
In particular I don't really know how to make it look for system-wide parameters to connect and only on fail ask for them, without trying to connect and reacting on failure.
Also: try (on devel) to remove the key setting altogether in the configuration.

@siraben
Copy link
Author

siraben commented Jul 16, 2021

@bordaigorl I can still replicate this on devel with the following config.json

{
    "ssh": {
        "address": ["10.11.99.1", "192.168.0.100"],
        "username": "root",
        "key": "~/.ssh/id_rsa",
        "timeout": 2
    },
    "orientation": "portrait",
    "pen_size": 10,
    "pen_color": "red",
    "pen_trail": 200,
    "background_color": "black",
    "hide_pen_on_press": false
}

@bordaigorl
Copy link
Owner

Is it still a problem with the settings below?

{
    "ssh": {
        "address": ["10.11.99.1", "192.168.0.100"],
        "username": "root",
        "auth_method": "key",
        "timeout": 2
    },
    "orientation": "portrait",
    "pen_size": 10,
    "pen_color": "red",
    "pen_trail": 200,
    "background_color": "black",
    "hide_pen_on_press": false
}

@siraben
Copy link
Author

siraben commented Jul 19, 2021

@bordaigorl that fixes it, thanks. The README should probably be updated to reflect this.

@bordaigorl bordaigorl added the docs Improvements or additions to documentation label Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants