Why can't I SSH to my Elastic Instance?

Still need help?

The Atlassian Community is here for you.

Ask the community

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

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

Example error: Elastic Bamboo private key file permission

[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': 
Last modified on Jul 11, 2013

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.