My SSH and FTP connection suddenly stopped working. I am unable to connect with my ec2 instance running ubuntu using SSH and FTP, here is the setting of my instance.
Security group setting:
Inbound:
`SSH TCP 22 0.0.0.0/0`
Outbound:
`All traffic All All 0.0.0.0/0`
Connecting using the command:
`ssh -v -i "key.pem" ubuntu@ec2-xx-xxx-xxx-xxx.eu-west-3.compute.amazonaws.com`
and getting below message:
OpenSSH_8.2p1, OpenSSL 1.1.1e 17 Mar 2020debug1: Reading configuration data /etc/ssh/ssh_configdebug1: Connecting to ec2-xx-xxx-xxx-xxx.eu-west-3.compute.amazonaws.com [xx.xxx.xxx.xxx] port 22.debug1: Connection established.debug1: identity file eotraceeu.pem type -1debug1: identity file eotraceeu.pem-cert type -1debug1: Local version string SSH-2.0-OpenSSH_8.2debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH_7.0*,OpenSSH_7.1*,OpenSSH_7.2*,OpenSSH_7.3*,OpenSSH_7.4*,OpenSSH_7.5*,OpenSSH_7.6*,OpenSSH_7.7* compat 0x04000002debug1: Authenticating to ec2-xx-xxx-xxx-xxx.eu-west-3.compute.amazonaws.com:22 as 'ubuntu'debug1: SSH2_MSG_KEXINIT sentConnection closed by xx.xxx.xxx.xxx port 22
Is there anything else I need to set up to be able to connect to the EC2 instance?