According to my ssh_config
file...
Configuration data is parsed as follows:
- command line options
- user-specific file
- system-wide file
With that said, (and yes, I know, I could scour man ssh_config
AND man ssh
, and (hope) for documented defaults).. how can I "print out" the active configuration, for ALL current settings. For example, something like...
ssh -o Tunnel=ethernet servername -p 2210 --print-config
SSH-2.0-OpenSSH_7.0
Command Line Options
Port 2210
Host servername
Command Line Configurations
Tunnel Ethernet
Config File
...
SSH Defaults
...
AddressFamily any (???)
BatchMode no
...
This would let you know explicitly exactly what is set, and why. I called out AddressFamily
specifically, as it is a perfect example of a configuration option with NO documented default value. From man ssh_config
...
Specifies which address family to use when connecting. Valid arguments are
any
,inet
(use IPv4 only), orinet6
(use IPv6 only).
Ugh! Thanks for any constructive suggestions (not just a bunch of RTFM
's). ?