Received error about cannot spawn when connecting through SSH via Putty
Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.
Summary
Received the following error message while using SSH connection even though the correct SSH keys had been added and the SSH agent was running:
1
2
error: cannot spawn C:\Program Files\PuTTY: Permission denied
error: cannot spawn C:\Program Files\PuTTY: Permission denied
Solution
The issue happens when an incorrect path is added for the SSH environmental variable "GIT_SSH".
Start by verifying the path in which SSH has been installed. Use the command below to check the ssh path:
1
$ where ssh
Navigate to the environmental variables in Putty > System variables > GIT_SSH and replace the value of "GIT_SSH" from Putty to the actual SSH.exe path.
If you are encountering issues following this documentation - please raise a support ticket or a community support ticket for further assistance.
Was this helpful?