def authorized_keys(name):
 ssh_dir = posixpath.join(home_directory(name), '.ssh')
 authorized_keys_filename = posixpath.join(ssh_dir, 'authorized_keys')
 return uncommented_lines(authorized_keys_filename, use_sudo=True)

def authorized_keys ( name ) : ssh_dir = posixpath . join ( home_directory ( name ) , '.ssh' ) authorized_keys_filename = posixpath . join ( ssh_dir , 'authorized_keys' ) return uncommented_lines ( authorized_keys_filename , use_sudo = True )
get the list of authorized ssh public keys for the user .