migrate get_pref_keys and get_ssh_user_from_keypair

untested as always