ERROR: Retrieve local SSH client's settings per host

I’ve got a new trellis instance and I’m running into a problem after initial setup and vagrant up:

TASK [common : Retrieve local SSH client’s settings per host] ******************
ssh: illegal option – G
usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
[-D [bind_address:]port] [-e escape_char] [-F configfile]
[-I pkcs11] [-i identity_file]
[-L [bind_address:]port:host:hostport]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-R [bind_address:]port:host:hostport] [-S ctl_path]
[-W host:port] [-w local_tun[:remote_tun]]
[user@]hostname [command]
System info:
Ansible; Vagrant 1.8.5; Darwin
Trellis at “Require Ansible or greater”

lookup_plugin.pipe(ssh -ttG | grep hostkeyalgorithms) returned 1
fatal: [default]: FAILED! => {“failed”: true}

I’m running ansible 2.2.00

I suspect this has something to do with:

Can anyone give me some pointers to debug this?

Thanks in advance.

Thanks for reporting this.

You could disable the ssh client validation to temporarily avoid the problem:

# group_vars/all/main.yml
validate_ssh: false

I installed Ansible and Vagrant 1.8.5 and was unable to reproduce this on my macOS 10.11.6.

OS version. What version is your OS?

OpenSSH version. Could you share your SSH client version?
Run ssh -V on your mac. Here’s mine:

$ ssh -V

OpenSSH_6.9p1, LibreSSL 2.1.8

Looks like the -G option was added in version 6.8 (released Mar 18, 2015):

  • ssh(1): Add a -G option to ssh that causes it to parse its
    configuration and dump the result to stdout, similar to “sshd -T”.

SSH -G. Could you test the -G option generally on your mac by running this?

$ ssh -G

port 22
addressfamily any
batchmode no
canonicalizefallbacklocal yes
+ 65 more lines of settings

No need to print all the settings it should output, unless it shows an error that looks helpful.

Also try ssh -ttG to see if the forced tty allocation (-tt) yields an error.

1 Like

Hi - Apologies for the delay in reply:

My os is 10.10.5

<code>ssh -V
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011

ssh -G and -ttG give the error from the original posts.

I’ll try updating system openSSH?

I went ahead and updated the OS on the machine to 10.12.3 and that has resolved the issues.

1 Like