Is it possible to log all ip addresses that trying to connect or connected to port "5901" in linux debian?
how can i do that?
You could do it using iptables
This will log new tcp connections on port 5901 to
if it's short term - this should do:
alternatively you can use the log target of iptables:
this might flood your logs