I have changed ssh port in lightsail server in /etc/ssh/sshd_config
file to 2200, I have enabled firewall to accept connections on port 2200. But when I am trying to connect through my local machine using command,
ssh -i key.pem [email protected] -p 2200
It is showing me an error "ssh: connect to host 13.xxx.x.109 port 2200: Connection refused". Can you help me out why it's connection is being refused?
/etc/ssh/sshd_config
file on the server you're trying to ssh into.