Use ssh_auth instead of manually handling SSH keys.