Score:0

Couldn't able to connect to ec2 ubuntu instance(bitnami AMI) using ssh pem key. It shows connection closed by ip port 22

cv flag
HOST Name:~$ ssh -vvv -i abcd.pem username@ip
OpenSSH_8.2p1 Ubuntu-4ubuntu0.2, OpenSSL 1.1.1f  31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname ip is address
debug2: ssh_connect_direct
debug1: Connecting to ip [ip] port 22.
debug1: Connection established.
debug1: identity file abcd.pem type -1
debug1: identity file abcd.pem-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.9p1 Debian-10+deb10u2
debug1: match: OpenSSH_7.9p1 Debian-10+deb10u2 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to ip:22 as 'username'
debug3: hostkeys_foreach: reading file "/home/Host Name/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/Host Name/.ssh/known_hosts:143
debug3: load_hostkeys: loaded 1 keys from ip
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by ip port 22
Michael Hampton avatar
cz flag
This looks like the client log. You will need to look at the logs on the server to find out why the login failed.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.