rtop
rtop copied to clipboard
not using ssh agent on MacOS
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…
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?
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.
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