rtop icon indicating copy to clipboard operation
rtop copied to clipboard

not using ssh agent on MacOS

Open cdmackay opened this issue 8 years ago • 3 comments
trafficstars

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…

cdmackay avatar Feb 11 '17 03:02 cdmackay

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?

mdevan avatar Feb 11 '17 09:02 mdevan

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.

cdmackay avatar Feb 11 '17 22:02 cdmackay

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

no1xsyzy avatar Nov 13 '20 05:11 no1xsyzy