When I try to connect it using ssh it doesn't respond. After restart, it responds and it again doesn't respond after few hours. What could be the issue?
It hangs after the below result.
ssh -i ssh-key-2021-12-24.key ubuntu@150.230.143.41 -v
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: Connecting to 150.230.143.41 [150.230.143.41] port 22.
debug1: Connection established.
debug1: identity file ssh-key-2021-12-24.key type 0
debug1: identity file ssh-key-2021-12-24.key-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_8.1