Remote control
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 runningapt-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 Connect 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.connect.jfrog.io --dport 443 -j ACCEPT
iptables -A OUTPUT -p tcp -d remote.connect.jfrog.io --dport 443 -j ACCEPT
iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
In case the Remote Control isn't working and you don't have other access to the device's terminal, you can run the next script using the Micro-update tool, in order to set and enable the root user. (follow the steps below the script)
Create a new Micro update, choose the relevant device.
Enter a version number, you can enter anything here.
At the section 'before update', upload the bash script above.
Make sure to save the script with .sh extension (for example: enable_user.sh)
Make sure to change the ENTER_SOME_PASSWORD to a password you will remember
Click on 'Deploy' to deploy the micro-update on the device.
Once deployed, the root user will be set and enabled. You should now try to open Remote Control to that device.
In case none of the above solve the issue, please verify your device and PC internet connection stability.
CentOS/Red Hat - SELinux permission issue
Please follow this guide.
Last updated