Can not open changed SSH port on fresh CentOS 7
First of all I dont have firewalld service started.
/etc/ssh/sshd_config, I changed Port 22 to Port 33361. Before doing that I checked that port 33361 is absolutely free to use.
I restarted sshd service:
systemctl restart sshd
And then cheked if ssh is listenning to new port.
lsof -l :33361 is:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sshd 3706 root 3u IPv4 28123 0t0 TCP *:33361 (LISTEN) sshd 3706 root 4u IPv6 28125 0t0 TCP *:33361 (LISTEN)
nmap localhost tells me that port 33361 is not open. And I can not connect to server via ssh.
Nmap scan report for localhost (127.0.0.1) Host is up (0.000017s latency). Other addresses for localhost (not scanned): 127.0.0.1 Not shown: 995 closed ports PORT STATE SERVICE 21/tcp open ftp 80/tcp open http 111/tcp open rpcbind 631/tcp open ipp 3306/tcp open mysql
Why port 33361 is not open?
All I want is connecting to server via command
ssh user@my_ip -p 33361
PS: Again, firewall is not running! I added this port to public zone earlier, but there is no diffrence. I do not have any ssh errors in /var/log.