sed -i 's/#Port/Port/' /etc/ssh/sshd_config sed -i '/Port/a Port 18822' /etc/ssh/sshd_config systemctl restart sshd