guests/linux: public key insertion is more robust

contents can have newlines (or not)