There are several cases when the Remote control tool will not work. If the tool doesn't work with your devices, please check the option below:
Make sure root
user exists and enabled. In case it is locked, here is how to enable it:
Set root password sudo passwd root
Activate root user sudo passwd -u root
Make sure openssh-server
is installed, or install it by running apt-get -y install openssh-server
Make sure network port 443 is OPEN in the device firewall or on the Router (OUTPUT table) when opening a remote control session.
Make sure you have a valid DNS record. You can add a DNS record by running the command: echo "nameserver 8.8.8.8" >> /etc/resolv.conf
In case the device firewall is on DROP mode, please run the next commands to allow Upswift agent using iptables
:
iptables -I INPUT 1 -i lo -j ACCEPT
iptables -A INPUT -s 127.0.0.1 -p tcp --sport 442 -j ACCEPT
iptables -A INPUT -s 127.0.0.1 -p tcp --dport 442 -j ACCEPT
iptables -A OUTPUT -s 127.0.0.1 -p tcp --sport 442 -j ACCEPT
iptables -A OUTPUT -s 127.0.0.1 -p tcp --dport 442 -j ACCEPT
iptables -A OUTPUT -p tcp -d api.upswift.io --dport 443 -j ACCEPT
iptables -A OUTPUT -p tcp -d remote.upswift.io --dport 443 -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
Please follow this guide.