468
468
check_output(['chown', '-R', user, ssh_dir])
471
478
def import_authorized_keys(user='root', prefix=None):
472
479
"""Import SSH authorized_keys + known_hosts from a cloud-compute relation.
473
480
Store known_hosts in user's $HOME/.ssh and authorized_keys in a path