write ssh-keys to file