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

not using ssh agent on MacOS #34

Open
cdmackay opened this issue Feb 11, 2017 · 3 comments
Open

not using ssh agent on MacOS #34

cdmackay opened this issue Feb 11, 2017 · 3 comments

Comments

@cdmackay
Copy link

Apologies if I'm missing something obvious, but rtop doesn't seem to be using my ssh agent.

MacOS 10.11.6
go1.7.5 darwin/amd64

$ ssh-add -l
2048 SHA256:blah /Users/blah/.ssh/id_rsa (RSA)
$ ssh server date
Sat 11 Feb 03:23:45 GMT 2017
$ bin/rtop server
Enter passphrase for key '/Users/blah/.ssh/id_rsa':

any ideas, please?

thanks much…

@mdevan
Copy link
Contributor

mdevan commented Feb 11, 2017

rtop does attempt to use the agent first, on all platforms. Could you debug through sshhelper.go function tryAgentConnect() and see what's going on?

@cdmackay
Copy link
Author

Thanks.

I'm new to Go, so that may take a while, but will try.

It's worth noting that other apps have no problem using the agent, in the same config, e.g. scp, rsync, etc.

@no1xsyzy
Copy link

Seems related: https://stackoverflow.com/questions/44269142/golang-ssh-getting-must-specify-hoskeycallback-error-despite-setting-it-to-n
When I print out err for ssh.Dial in tryAgentConnect(), it says ssh: must specify HostKeyCallback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants