Permission denied (publickey) SSH Macos

Прошу пожалуйста помочь, хочу подключиться к серверу по SSH.

У меня есть файл .pem для подключения, но когда я ввожу ssh -i Downloads/ca.pem [email protected]

Выдает ошибку Permission denied (publickey)

Вот логи:

debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host '3.96.214.8' is known and matches the ED25519 host key.
debug1: Found key in /Users/lautariano/.ssh/known_hosts:57
debug3: send packet: type 21
debug2: ssh_set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: ssh_set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities
debug1: Will attempt key: /Users/lautariano/Downloads/ca.pem  explicit
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,[email protected],ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected]>
debug1: kex_input_ext_info: [email protected]=<0>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug3: start over, passed a different list publickey
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /Users/lautariano/Downloads/ca.pem
debug3: sign_and_send_pubkey: using [email protected] with RSA SHA256:Wyb7eTLbxT2APCVKBEa3U6nB5Hi0lGJk+9Pj39Ublwk
debug3: sign_and_send_pubkey: signing using rsa-sha2-512 SHA256:Wyb7eTLbxT2APCVKBEa3U6nB5Hi0lGJk+9Pj39Ublwk
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey
debug2: we did not send a packet, disable method
debug1: No more authentication methods to try.

Ответы (0 шт):