hello,
sshd -T prints all options configured for sshd at the moment (defaults + config file)
output of
sshd -T|sort -u|sed s/\ /\=/
I would like to process to get same options values listed in one line and values comma separated, so, eg:
hostkey=/etc/ssh/ssh_host_dsa_key
hostkey=/etc/ssh/ssh_host_ecdsa_key
hostkey=/etc/ssh/ssh_host_rsa_key
listed as:
hostkey=/etc/ssh/ssh_host_dsa_key,/etc/ssh/ssh_host_ecdsa_key,/etc/ssh/ssh_host_rsa_key
(and all other options listed as they are)
thank you in advance for some ease method with e.g. awk oneliner
sshd -T prints all options configured for sshd at the moment (defaults + config file)
output of
sshd -T|sort -u|sed s/\ /\=/
I would like to process to get same options values listed in one line and values comma separated, so, eg:
hostkey=/etc/ssh/ssh_host_dsa_key
hostkey=/etc/ssh/ssh_host_ecdsa_key
hostkey=/etc/ssh/ssh_host_rsa_key
listed as:
hostkey=/etc/ssh/ssh_host_dsa_key,/etc/ssh/ssh_host_ecdsa_key,/etc/ssh/ssh_host_rsa_key
(and all other options listed as they are)
thank you in advance for some ease method with e.g. awk oneliner