エラスティック インスタンスにアクセスする
It's possible to connect directly to a running elastic instance to access logs or upload files. Access is available through secure shell (SSH) and file transfer is enabled through secure copy (SCP).
You can only access already running elastic instances. To do that, you may need to configure the automatic termination of elastic instances.
このページの内容
関連ページ
SSH を使用する
SSH を使用してエラスティック インスタンスにアクセスする方法は次のとおりです。
- Navigate to an elastic instance as described in Viewing an elastic instance.
Run the command listed in the SSH Access section. For example:
ssh -i elasticbamboo.pk <username>@ec2-68-111-185-197.compute-1.amazonaws.com
Where
<username>
is a correct username. Common values are "ubuntu" (for the Stock Ubuntu Elastic Image and images derived from it) and "ec2-user" (for old Stock Elastic Images and images based on Amazon Linux).You can also download the private by using the link in the SSH Access section of Viewing an elastic instance to access your elastic instance via SSH. You can download the SSH private key file by clicking the link provided on-screen.
If you are experiencing permission issues when attempting to SSH into your elastic instance, you may need to log in as root or modify the permissions on your Elastic Bamboo private key file. See this FAQ for more details.
SCP を使用する
You can use SCP to download logs or upload files to your elastic instance.
SCP を使用してエラスティック インスタンスにアクセスする方法は次のとおりです。
- Navigate to the an elastic instance as described in Viewing an elastic instance.
Run the command listed in the Accessing logs section. For example:
scp -i elasticbamboo.pk <username>@ec2-68-111-185-197.compute-1.amazonaws.com:/home/bamboo/bamboo-elastic-agent.out ./
Where
<username>
is a correct username. Common values are "ubuntu" (for the Stock Ubuntu Elastic Image and images derived from it) and "ec2-user" (for old Stock Elastic Images and images based on Amazon Linux).