Cannot SSH into Ubuntu (A1 Compute Instance)
I have just created an Ubuntu 20.04 instance which runs on VM.Standard.A1.Flex, but when I tried to connect to it via ssh it wouldn't work and gave me an error "Authentication failed (publickey)". I asked Oracle support and they sent me instructions, but the VM still won't connect.
Log:
Starting a new connection to: "168.138.50.215" port "22"
Starting address resolution of "168.138.50.215"
Address resolution finished
Connecting to "168.138.50.215" port "22"
Connection to "168.138.50.215" established
Starting SSH session
Remote server: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.4
Agreed KEX algorithm: ecdh-sha2-nistp256
Agreed Host Key algorithm: ssh-rsa
Agreed server-to-client cipher: aes128-ctr MAC: hmac-sha2-256
Agreed client-to-server cipher: aes128-ctr MAC: hmac-sha2-256