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

Can get ssh-agent to work in Linux #120

Closed
leictreon opened this issue Mar 15, 2019 · 2 comments
Closed

Can get ssh-agent to work in Linux #120

leictreon opened this issue Mar 15, 2019 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@leictreon
Copy link

leictreon commented Mar 15, 2019

Hi - this works great when I enter password, but normally I use an ssh-agent. $SSH_AUTH_SOCK correctly points to the ssh-agent socket, but it doesn't seem to use it. If I set "passphrase" to true I can enter password it and it connects fine.
here's my config snippet:

        {
            "name": "RAS_Python",
            "label": "RAS python",
            "root": "/home/roc/",
            "host": "192.168.1.2",
            "port": 22,
            "username": "roc",
            // I tried both the env var, and socket path itself
             //"agent": "$SSH_AUTH_SOCK",
            "agent": "/tmp/ssh-9zRw9V13lIHP/agent.11119",
            "privateKeyPath": "/home/roc/.ssh/id_rsa",
            "passphrase" : true,
        }

and I reload any changes with ctrl-shift-P -> SSH FS reload configurations.

@SchoofsKelvin
Copy link
Owner

I notice you're also using privateKeyPath. I'll have to look at how exactly the underlying ssh2 library I use does it, but as far as I remember, private keys have priority over agents. I'll look into this tomorrow, either to allow you to specify the order, or me changing the default order without preventing certain authentication systems from working.

@leictreon
Copy link
Author

Ah yes! this fixed it - I deleted the setting for private key and it looked just for the agent. I should have realized this. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants