I run a small server running Ubuntu Server 14.04 and have just noticed that the .ssh folder in the users home directory is accessible via SMB and NFS.
The SMB and NFS are both secured, however I feel this is a weak spot in the server security as I have restricted access to SSH via key auth only.
What does everyone do in terms of ensuring the .ssh folder cannot be reached except from via SSH.
I have been looking around and cannot find a generally accepted method. I have looked into restricting and excluding access to certain folders within NFS and SMB shares but this feels more like a workaround than a specific solution to me.