Why can't I SSH to my Elastic Instance?

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

SSH access is enabled by default for Elastic Instances when you first use Elastic Bamboo. If you are attempting to access your elastic instance via SSH and get bad permission errors (see below for an example error), there may be a permission issue with the Elastic Bamboo private key file (elasticbamboo.pk).

On certain Unix/Linux systems, the SSH command may fail if the private key file's permissions are too open. Changing the private key file's permissions to make it only readable by the owner may resolve this.

You may change file permissions to

1 $ sudo chmod 0600 /home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk

Example error: Elastic Bamboo private key file permission

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 [user@atlassian ~]$ ssh -i /home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk root@ec2-174-129-192-22.compute-1.amazonaws.com The authenticity of host 'ec2-174-129-192-22.compute-1.amazonaws.com (174.129.192.22)' can't be established. RSA key fingerprint is 4d:7h:d6:ef:4c:e4:f1:a4:33:5e:0a:4b:11:e1:d2:93. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'ec2-174-129-192-22.compute-1.amazonaws.com,174.129.192.22' (RSA) to the list of known hosts. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: /home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk Enter passphrase for key '/home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk': @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions 0644 for '/home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk' are too open. It is recommended that your private key files are NOT accessible by others. This private key will be ignored. bad permissions: ignore key: /home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk Enter passphrase for key '/home/bamboo/bamboo-home/xml-data/configuration/elasticbamboo.pk':
Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.