I really know exactly know how to best ask this best and is taken care of in the backend, but I have recently delved into the world of public key authentication over ssh. This led me to wonder about how easy it would be for someone to do the same remotely to my computer? Is there a way to protect the .ssh folder to prevent scp into it or prevent a key from being added to authorized-keys without root permissions or something.
Is this type of security issue taken care of by the knowledge that they would have to have your password anyway to scp in? Am I dawning a tinfoil hat preemptively?
Thanks

authorized_keysanyway)? In case of a problem, just change the password and clear outauthorized_keys. They don't even needscp, just open an SSH connection and pipe anechocommand into the file, or startvim, or any of a thousand ways to get the key in there... – Daniel Beck Apr 29 '11 at 16:58