If you're not using SSH certificates you're doing SSH wrong
after node update to Ubuntu 22.04 -> Failed: AuthenticationFailure: Authentication failure connecting to node: "XXX". Make sure your resource definitions and credentials are up to date.
git - Xcode - Authentication failed error when adding repository with SSH auth - Stack Overflow
Troubleshooting SSH errors | Compute Engine Documentation | Google Cloud