2. Bosh Director 접속 방법
OpsManager VM에 접속한다.
BoshDirector VM을 접속하려면, AWS에서는 Bosh Director VM은 사설 IP 대역을 사용하기 때문에, OpsManager에 접속하여
ssh를 시도하여야 한다.
2-1. set - environment
$ source ./set-env.sh
$ bosh env
Using environment '10.0.7.11' as client 'ops_manager'
Name p-bosh
UUID 57dca7c6-19eb-4bee-8f47-bb648a11687e
Version 271.20.0 (00000000)
Director Stemcell ubuntu-xenial/621.198
CPI aws_cpi
Features config_server: enabled
local_dns: enabled
power_dns: disabled
snapshots: disabled
User ops_manager
Succeeded
2-2. OpsManager 타일 - Bosh Tile - Credential - BBR ssh Credential 복사
2-3. RSA private key 정제
$ printf -- "아래내용 복사" > bbr.pem
-----BEGIN RSA PRIVATE KEY-----\nMIIEowIBAAKCAQEAq1SBD3P+xqBI0cwx0d2ZV+jYk7HXmFVW2+9jrtis+WymsbSI\nz36nqUfesYfR/4YTLIDpnNU52wBXOST1QKDiUBWKAMjmr9qiHmC4kpasBBGPZ+vB\nEjimQHUscIH+OO3T5fBfxd3VvfwK8/9H+rkJV6RxcjwYFywxyCPWcSTdGAkG3lJx\nf8p2TiN8OJbzc4tX1/CDPQPwZ+Awewg6jgV3ix/vyilEgSz+yJEvmtZfY8UPc/3R\nC/+a9VopCf/r/pL0h5dO3ngKO+xBZwPB/8rfNvHBYGMd3M2TTtaMXYDNTviXxSZA\nGWZi/nO9UL5o7MGLFTPELGIYzF5ExpWe5PLimQIDAQABAoIBAALYJExdYJ1ri8nv\n2ePiCemrs+y/xxSAVjDQiJcegcCiTSImHR9UuvPUfZ3040easjbK7RXtdEhueQQ5\n2Nh500gBE4lvzGSe/JIEiQvl9HUc1YSkJVBoIFpxl4tGnTHUwO/QTca7KBE/Xe8v\nDcLbz4vk7v02gi/gS/NGpQi70+/SL5CGQpiJ2pxT99Nxetm6Cbk1XCX0fJVskeN3\nZB8FwWkvLHIvxtXf7vxUviHPcYeTMHNwKjpwXRvSfsbu0oHtKUb/rISKwyVvuCmb\n96HrEp2Mar1MDvTJPeeZZB8uUBx+kcStFBcf0jyyeSm3qeOWn5d43NSrct3nfZkX\nrweyfQECgYEA49tuvM0tUed+sHX3ksDfrgjQWg7XG1n4G1fMwYW0r891unWzvqHx\nt10vY3VvNaQwoxMqNdyGGQBIBlzsZ3LDe3fu0gscdgOUGVbZ5sDeH3FKy2GMXdei\nHcsq6lGBazyxzP/lqGZg0Dpc4o8D8wKX0eQu3zJRY23b1F1hUXpXObcCgYEAwH3B\nFtzcZrYJdzFfx3kMu95mbgwktJrPxhH9c8I6FwqWD1zgk5nfyExjGam89yfhl/7M\noDhGymJXK8B28YvjbMnJiuR34ztvT0epkHL+gYIdez09R1nUPNiKwemK1//Db6dn\n8RA4E5XN8j3E5/kZ6pStSzRaOrKpJPrI+r0TBi8CgYBEEz8WcUZk/gC/v77jvXQW\njtOQ1HY32b1ijezCtKuzCwxlVN0Ky19oJRMPZ/p90DwnvIYT6Xq25XqfTAvlLEhz\nDvXvExrBt3f7yhL3+g9i3Xo3IUHKl637sMN1ljxQSaXlVV7L3Sp3i7hMh+XqKJAr\nST0nueTPC/dtjyiQKzj8KQKBgQCfTTNoVV39jrdksjLe5RoZvGOuvVP/N4OuGyNT\nErF6ciNgEXA2FwkxPa5iBaxCKvozDQaRriE/yoTzy3NkUW3kkVa/IHbrUju7M8Zr\nqg9gZKs7W6IEE55mwJqNAlcKjTtTgwqtYMvXwYlP6bi0dd3x2htUer4Vh9gdp4J+\np80/twKBgDYAWDz/Cj9d7M2FxhKB4zuXqPeZlQVjPC220h5rsdW/DDHrP/8LKNPU\nKGge46lhXD7vuPyuL3NACyzhgrpx/0kYlfUHJS6DKZyb3ez13aNkC3N8as+eK666\nFNFDSxeqdmqf7LnQh74XNwJH+DViVOpAli4bA3+6mcOACdkiJde7\n-----END RSA PRIVATE KEY-----
# 개행 \n 으로 인한 html 표준양식 에서의 pem 키 복사 시에 printf를 이용합니다.
2-4 Bosh Director VM 의 ip 로 접근합니다.
$ chmod 600 bbr.pem
# 아까 정제해둔 private 키의 권한을 600으로 설정합니다.
$ ssh bbr@10.0.7.11 -i bbr.pem
# ssh 접속하는 shell을 작성하면 자주 사용하기 때문에 시간을 아낄수 있습니다.
2-5. 접속완료
'VMware > 운영(TAS)' 카테고리의 다른 글
[Tanzu 운영 ] (6) spring-music 과 mysql binding (0) | 2022.05.02 |
---|---|
[Tanzu 운영] (5) buildpack create 및 rename (0) | 2022.04.29 |
[Tanzu 운영] (4) 트러블 슈팅: Bosh CA 인증서 생성시 중복오류 (0) | 2022.04.07 |
[Tanzu 운영] (3) Bosh CA 인증서 교체 (0) | 2022.04.06 |
[Tanzu 운영] (1) TAS System Shutdown 작업순서 (0) | 2022.04.06 |