local.m4: Refactor common SSH permission between safe/untrusted hosts.