/root d /root/.ssh d /root/.ssh/authorized_keys !fc awk ' BEGIN{ getline key <"/home/ccx/.ssh/id_rsa.pub" } #> $0 == key { seen = 1 } { print $0 } END { if(!seen) print key } ' m600 #/etc/ssh/sshd_config #!fc awk ' # BEGIN{ getline key <"/home/ccx/.ssh/id_rsa.pub" } #> # $0 == key { seen = 1 } # { print $0 } # END { if(!seen) print key } # ' #m600