https://bugzilla.redhat.com/show_bug.cgi?id=1857104
--- Comment #6 from Jakub Jelen jjelen@redhat.com --- Pavel, one more fast solution that came to my mind would be parsing parent process command-line to get this information from ssh (ssh is always parent process). It would be trivial to catch -4 or -6 options specified on commandline, but more complicated if -oAddressFamily=inet would be user or if AddressFamily would be used from configuration files (unless we would like to parse these too).