Can't SSH into fresh Fedora Server 27 after changing port, SELinux type enforcement & Firewall rules
I've essentially done the following:
sudo sed -i 's/#Port\ 22/Port\ ###/' /etc/ssh/sshd_config
sudo semanage port -a -t ssh_port_t -p tcp ###
sudo firewall-cmd --permanent --zone=public --add-port=###/tcp
Keys were created & copied with the following:
ssh-keygen -t rsa
ssh-copy-id user@host
On the client box, I'm met with an error about 'no route to host'. Default port works without issue. Any input is appreciated.
Thank you,
Two important questions.
Is sshd socket-activated on your system? That is: is
sshd.socket
enabled. If that is the case, thesshd.socket
service file needs adjusting as well.Has the sshd daemon been restarted?