for line in $(nvram dump | grep =$ | grep -v sshd_dsskey | grep -v sshd_hostkey); do var=${line%*=}; nvram unset $var; done nvram commit