action icon indicating copy to clipboard operation
action copied to clipboard

Unable to SSH in using ec2-user@[ip] with Lightsail Private Key

Open geoffatsource opened this issue 1 year ago • 2 comments

I am getting permission denied errors trying to SSH in via local terminal. Also, I'm a bit confused how the authorized Github users config works when SSHing in.

⚙️ Starting SSH session
⚙️ Remote server: SSH-2.0-OpenSSH_8.7
⚙️ Agreed KEX algorithm: ecdh-sha2-nistp256
⚙️ Agreed Host Key algorithm: ecdsa-sha2-nistp256
⚙️ Agreed server-to-client cipher: aes128-ctr MAC: hmac-sha2-256
⚙️ Agreed client-to-server cipher: aes128-ctr MAC: hmac-sha2-256
⚙️ Agreed client-to-server compression: none
⚙️ Agreed server-to-client compression: none
⚙️ Handshake finished
👤 Checking host key: 79:df:35:3e:10:09:6e:bd:6e:74:69:d5:81:d8:37:d6
❗ Host "54.188.11.123":"22" is unknown
👤 Connection to "54.188.11.123":"22" accepted
👤 Authenticating to "54.188.11.123":"22" as "ec2-user"
⚙️ Available client authentication methods: publickey,password,keyboard-interactive
⚙️ Authentication that can continue: gssapi-with-mic,publickey
👤 Authenticating using publickey method
❗ Authentication failed (publickey)
⚙️ Partial success: no
⚙️ Authentication that can continue: gssapi-with-mic,publickey
😨 No more authentication methods to try

geoffatsource avatar Feb 24 '24 02:02 geoffatsource