For correct operation, the server with the platform must be able to:
- connect to the location server using an SSH key;
- upload files to the location server via SSH.
To enable SSH access to the location:
- Connect to the location server.
- If the ~/.ssh/authorized_keys file does not contain the public SSH key of the server with the platform, add the contents of the SSH key to the file.
- Check the settings of the configuration file /etc/ssh/sshd_config:
- If the file contains a Match Address parameter, add the IP addresses of the server with the platform to it.
- Set the PermitRootLogin and PubkeyAuthentication parameters to yes.
-
Set the AuthorizedKeysFile parameter to .ssh/authorized_keys.
Example settingsMatch Address 192.168.1.1,192.168.1.2,192.168.2.0/28 PermitRootLogin yes PubkeyAuthentication yes AuthorizedKeysFile .ssh/authorized_keys
-
If you made changes to the configuration file, restart the sshd service:
systemctl restart sshd