terminal – Permission denied (publickey). Oracle Cloud VM


I lately made a modification on this file: /and so forth/ssh/sshd_config by including this line: CASignatureAlgorithms +ssh-rsa (to unravel issues with Github Actions: https://github.com/appleboy/ssh-action) however since I can not hook up with my server.

This machine is an Oracle VM working on the newest model of Ubuntu. I’ve the chance by way of Oracle to entry the storage of the machine (to switch any file) however no entry by way of ssh.

So I attempted to take away : CASignatureAlgorithms +ssh-rsa from the sshd_config file, however after a reboot, it’s nonetheless unattainable to entry the server by way of ssh. I’ve tried all of the strategies steered right here (https://askubuntu.com/questions/311558/ssh-permission-denied-publickey) however none of them works.

Right here is the total log when typing this command : ssh -vvv -i Downloads/key.key ubuntu@1.1.1.1 (With the actual ip after all being completely different than 1.1.1.1)

maxime@MacBook-Professional ~ % ssh -vvv -i Downloads/key.key ubuntu@1.1.1.1
OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Studying configuration knowledge /and so forth/ssh/ssh_config
debug1: /and so forth/ssh/ssh_config line 21: embody /and so forth/ssh/ssh_config.d/* matched no recordsdata
debug1: /and so forth/ssh/ssh_config line 54: Making use of choices for *
debug2: resolve_canonicalize: hostname 1.1.1.1 is handle
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Customers/maxime/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Customers/maxime/.ssh/known_hosts2'
debug1: Authenticator supplier $SSH_SK_PROVIDER didn't resolve; disabling
debug3: ssh_connect_direct: getting into
debug1: Connecting to 1.1.1.1 [1.1.1.1] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: Connection established.
debug1: identification file Downloads/key.key sort -1
debug1: identification file Downloads/key.key-cert sort -1
debug1: Native model string SSH-2.0-OpenSSH_8.6
debug1: Distant protocol model 2.0, distant software program model OpenSSH_8.9p1 Ubuntu-3
debug1: compat_banner: match: OpenSSH_8.9p1 Ubuntu-3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 1.1.1.1:22 as 'ubuntu'
debug3: record_hostkey: discovered key sort ED25519 in file /Customers/maxime/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 1 keys from 1.1.1.1
debug1: load_hostkeys: fopen /Customers/maxime/.ssh/known_hosts2: No such file or listing
debug1: load_hostkeys: fopen /and so forth/ssh/ssh_known_hosts: No such file or listing
debug1: load_hostkeys: fopen /and so forth/ssh/ssh_known_hosts2: No such file or listing
debug3: order_hostkeyalgs: have matching best-preference key sort ssh-ed25519-cert-v01@openssh.com, utilizing HostkeyAlgorithms verbatim
debug3: ship packet: sort 20
debug1: SSH2_MSG_KEXINIT despatched
debug3: obtain packet: sort 20
debug1: SSH2_MSG_KEXINIT obtained
debug2: native shopper KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,ext-info-c
debug2: host key algorithms: ssh-ed25519-cert-v01@openssh.com,ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,sk-ssh-ed25519-cert-v01@openssh.com,sk-ecdsa-sha2-nistp256-cert-v01@openssh.com,rsa-sha2-512-cert-v01@openssh.com,rsa-sha2-256-cert-v01@openssh.com,ssh-rsa-cert-v01@openssh.com,ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ssh-ed25519@openssh.com,sk-ecdsa-sha2-nistp256@openssh.com,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com,zlib
debug2: compression stoc: none,zlib@openssh.com,zlib
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,sntrup761x25519-sha512@openssh.com,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256
debug2: host key algorithms: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: ciphers stoc: chacha20-poly1305@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh.com,aes256-gcm@openssh.com
debug2: MACs ctos: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha1-etm@openssh.com,umac-64@openssh.com,umac-128@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh.com
debug2: compression stoc: none,zlib@openssh.com
debug2: languages ctos: 
debug2: languages stoc: 
debug2: first_kex_follows 0 
debug2: reserved 0 
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->shopper cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none
debug3: ship packet: sort 30
debug1: anticipating SSH2_MSG_KEX_ECDH_REPLY
debug3: obtain packet: sort 31
debug1: SSH2_MSG_KEX_ECDH_REPLY obtained
debug1: Server host key: ssh-ed25519 SHA256:WrhZeCu2bcwU4E4KGcx0YqI7ugjDVd5vet5JSSgXBiM
debug3: record_hostkey: discovered key sort ED25519 in file /Customers/maxime/.ssh/known_hosts:5
debug3: load_hostkeys_file: loaded 1 keys from 1.1.1.1
debug1: load_hostkeys: fopen /Customers/maxime/.ssh/known_hosts2: No such file or listing
debug1: load_hostkeys: fopen /and so forth/ssh/ssh_known_hosts: No such file or listing
debug1: load_hostkeys: fopen /and so forth/ssh/ssh_known_hosts2: No such file or listing
debug1: Host '1.1.1.1' is thought and matches the ED25519 host key.
debug1: Discovered key in /Customers/maxime/.ssh/known_hosts:5
debug3: ship packet: sort 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS despatched
debug1: anticipating SSH2_MSG_NEWKEYS
debug3: obtain packet: sort 21
debug1: SSH2_MSG_NEWKEYS obtained
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will try key: Downloads/key.key  express
debug2: pubkey_prepare: achieved
debug3: ship packet: sort 5
debug3: obtain packet: sort 7
debug1: SSH2_MSG_EXT_INFO obtained
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com>
debug1: kex_input_ext_info: publickey-hostbound@openssh.com (unrecognised)
debug3: obtain packet: sort 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT obtained
debug3: ship packet: sort 50
debug3: obtain packet: sort 51
debug1: Authentications that may proceed: publickey
debug3: begin over, handed a special checklist publickey
debug3: most well-liked publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining most well-liked: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Subsequent authentication technique: publickey
debug1: Making an attempt non-public key: Downloads/key.key
debug3: sign_and_send_pubkey: RSA SHA256:H3aaZjsn4Pr43Nvj+MvvfxlLgaP6VmEwgNg8t3UAT0g
debug3: sign_and_send_pubkey: signing utilizing rsa-sha2-512 SHA256:H3aaZjsn4Pr43Nvj+MvvfxlLgaP6VmEwgNg8t3UAT0g
debug3: ship packet: sort 50
debug2: we despatched a publickey packet, watch for reply
debug3: obtain packet: sort 51
debug1: Authentications that may proceed: publickey
debug2: we didn't ship a packet, disable technique
debug1: No extra authentication strategies to strive.
ubuntu@1.1.1.1: Permission denied (publickey).
maxime@MacBook-Professional ~ %

So I can not discover any resolution to entry once more.

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here