If Gitea is running as a docker container, then there is a SSH Shim script at “/usr/local/bin/gitea” that contains the local IP address of the machine, which might be different from the 127.0.0.1 that’s provided in the documentation.
This script needs to be updated with the new IP address as well.