diff options
author | Michael Polenchuk <mpolenchuk@mirantis.com> | 2019-02-05 07:32:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2019-02-05 07:32:32 +0000 |
commit | ad2d9696a3a9dd7602dd0d794a0b722e0b9d3565 (patch) | |
tree | e6f6765ff1b2bd10cd1c4aa1a739ceab43355ac8 /mcp | |
parent | 344ff3f741c925d387bbf9f10db0f77455f929da (diff) | |
parent | 68594bd6e16253d2f2977a4ab46713386e2482bd (diff) |
Merge "[cfg01] Use ssh config to set default user & key"
Diffstat (limited to 'mcp')
-rwxr-xr-x | mcp/scripts/docker-compose/files/entrypoint.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mcp/scripts/docker-compose/files/entrypoint.sh b/mcp/scripts/docker-compose/files/entrypoint.sh index eb549bc28..9830ea15f 100755 --- a/mcp/scripts/docker-compose/files/entrypoint.sh +++ b/mcp/scripts/docker-compose/files/entrypoint.sh @@ -16,6 +16,9 @@ fi if [ ! -f /home/ubuntu/.ssh/authorized_keys ]; then install -D -o ubuntu /root/fuel/mcp/scripts/mcp.rsa.pub \ /home/ubuntu/.ssh/authorized_keys + mkdir -p /root/.ssh/ + echo 'User ubuntu' > /root/.ssh/config + echo 'IdentityFile /root/fuel/mcp/scripts/mcp.rsa' >> /root/.ssh/config fi if ! grep -q localhost /etc/hosts; then |