leap ssh / leap test
leap test ssh's into a box to run some tests. leap ssh, ssh's into a box and gives you a shell there. They don't seem to follow the same logic within leap_cli, I suspect leap test is using my agent, while leap ssh did look into my ~/.ssh/config but didn't try any keys in my agent.
kwadronaut@hazelaar:~/Leap/dev/bitmask$ leap test antelope = [antelope.mail.bitmask.net] PASS: Network > Can connect to internet? = [antelope.mail.bitmask.net] PASS: Network > Is stunnel running? = [antelope.mail.bitmask.net] PASS: Network > Is shorewall running? = [antelope.mail.bitmask.net] PASS: CouchDB > Are daemons running? = [antelope.mail.bitmask.net] PASS: CouchDB > Is CouchDB running? = [antelope.mail.bitmask.net] PASS: CouchDB > Is cluster membership ok? = [antelope.mail.bitmask.net] PASS: CouchDB > Are configured nodes online? = [antelope.mail.bitmask.net] PASS: CouchDB > Do ACL users exist? = [antelope.mail.bitmask.net] FAIL: CouchDB > Do required databases exist? [couchdb.rb:89]: = [antelope.mail.bitmask.net] Expected a 200 status code from GET http://admin:REDACTED@localhost:5984/tokens_561, but got 404 instead. = [antelope.mail.bitmask.net] (via direct localhost connection) = [antelope.mail.bitmask.net] {"error":"not_found","reason":"Database does not exist."} = [antelope.mail.bitmask.net] Tests halted on failure (because of --no-continue). = bailing out kwadronaut@hazelaar:~/Leap/dev/bitmask$ leap ssh antelope no such identity: /home/kwadronaut/.ssh/leap_flea_kwadronaut: No such file or directory no such identity: /home/kwadronaut/.ssh/leap_flea_kwadronaut: No such file or directory no such identity: /home/kwadronaut/.ssh/leap_flea_kwadronaut: No such file or directory Permission denied (publickey). Are 'too many authentication failures' getting you down? Then we have the solution for you! Add something like this to your ~/.ssh/config file: Host *.bitmask.net IdentityFile ~/.ssh/id_rsa IdentitiesOnly=yes (replace `id_rsa` with the actual private key filename that you use for this provider)
I prefer the way leap test did use ssh, anything we can rip out from leap ssh? Or am I making wrong assumptions?
Note: I had an error in my .ssh/config for that specific host, in case you want to reproduce, you can just point to a non-existing key.
(from redmine: created on 2016-02-04)