As illustrated in this Atlassian thread, this is usually related to a credential issue.
In your case, it could be an ssh configuration problem, with no or the wrong ssh public/private keys.
Or, still for ssh, it can be related to ssh keys incorrectly registered.