Ok,
so here's the deal. I setup an Iptables rule as follows:
IPTABLES -A INPUT -p tcp --dport 51722 -j ACCEPT
and if I do systemctl status sshd.service
, I get the following:
Server listening on 0.0.0.0 port 51722.
Ok. That's what I want. I then ssh as such ssh -p 51722 [email protected]
once I login, I check status of sshd again and notice.
Accepted password for root from MY.IP.ADDRESS port 49344 ssh2
Why is it showing that it is on Port 49344 as opposed to 51722?