dzaninov/aws2luks

SSH Permission denied (publickey).

Opened this issue · 1 comments

Unable to SSH as root to boot the system.

OS_URL=https://cloud-images.ubuntu.com/releases/groovy/release/ubuntu-20.10-server-cloudimg-amd64.tar.gz
OS_IMAGE=groovy-server-cloudimg-amd64.img

Tried to bash with aws2luks.custom during install, create /root/.ssh/authorized_keys , but still unable to SSH after install:

% ssh -v -i ssh root@x.x.x.x
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: /etc/ssh/ssh_config line 51: Applying options for *
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug1: Connection established.
debug1: identity file ester type 0
debug1: identity file ester-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1
debug1: Remote protocol version 2.0, remote software version dropbear_2020.80
debug1: no match: dropbear_2020.80
debug1: Authenticating to 18.197.15.33:22 as 'root'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:WFKsPtuaAotrLlSiWUe/wY9oNP5uIQWxnWuJOwhaXNU
debug1: Host 'x.x.x.x' is known and matches the ECDSA host key.
debug1: Found key in /Users/uxus/.ssh/known_hosts:46
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: ssh RSA SHA256:XXXXXXXXXXXXXXXXXXXX explicit
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-256,ssh-rsa,ssh-dss>
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering public key: ssh RSA SHA256:XXXXXXXXXXXXXXXXXXXX explicit
debug1: Authentications that can continue: publickey
debug1: No more authentication methods to try.
root@x.x.x.x: Permission denied (publickey).

I'd love to know if there is a solution to this as well, as I've run into the same problem.