BOSH Director
How to ssh onto BOSH director vm
Go to "Ops manager UI"
Click on "Bosh Tile"
Go to "Credentials" tab
Click on "Bbr Ssh Credentials" to get the RSA private key
Save the key in
~/.ssh/bbr-ssh.key, remember to replace \n to with newlinesChange the bbr-ssh.key permission:
chmod 600 ~/.ssh/bbr-ssh.keySSH to BOSH vm:
ssh bbr@<bosh-DIRECTOR-IP> -i ~/.ssh/bbr.keysudo -ito get the root privilege
Steps 1 - 4 could be automated by:
alias omcli='om -t https://30.0.0.5 -u admin -p '\''xxxxx'\'' -k'
Replace 'xxxxxx' with your opsman password.
omcli curl -p /api/v0/deployed/director/credentials/bbr_ssh_credentials
You will get the output similar to the following:
{
"credential": {
"type": "rsa_pkey_credentials",
"value": {
"private_key_pem": "-----BEGIN RSA PRIVATE KEY-----xxxxxxx-----END RSA PRIVATE KEY-----\n",
"public_key_pem": "-----BEGIN PUBLIC KEY-----xxxxxxx-----END PUBLIC KEY-----\n"
}
}
}