Encountering difficulties in connecting to the target host? Ensure that the specified SSH Port is valid and that the target host is powered on.Cause 1: The target host is offline.Cause 2: Firewall is enabled on the target host.
1. Make sure that the target host is powered on.2. To check the Firewall status in a Linux Machine, use the command specific to your distribution:
- For Ubuntu: `sudo ufw status`
- For Fedora: `systemctl status firewalld`
If the Firewall is active, add firewall rules for SSH port 22 and backup port 42005:For Ubuntu:iptables -A INPUT -p tcp --dport 22 -j ACCEPTiptables -A INPUT -p tcp --dport 42005 -j ACCEPTFor Fedora:sudo firewall-cmd --zone=public --add-port=42005/tcp