I update my :
- /etc/ssh/sshd_config, update port from 22 to 558
- /etc/fail2ban/jail.local, update port from 22 to 558
add a new record in iptables
iptables -A INPUT -p tcp -m multiport --dports 558 -j fail2ban-ssh
I restarted all 3 services
As you can see, I checked if I did connectly :
iptables -L --line-numbers | grep 558 cat /etc/fail2ban/jail.local | grep 558 cat /etc/ssh/sshd_config | grep 558
I seem to did it
I also check
netstat -tnpl , I see 558 there.
tcp 0 0 0.0.0.0:558 0.0.0.0:* LISTEN 21015/sshd
Why I still can't SSH into my VM with a port 558 ?
I kept getting