error when add remote destination

When trying to add a remote destination I get the following error
Cannot add destination. Error message: sh: command not found. Host x.x.x.x not found in /root/.ssh/known_hosts must be str, not NoneType [setupSSHKeys]

How to solve this problem, please?