aboutsummaryrefslogtreecommitdiffstats
path: root/tools/md-testvnf/scripts/sshConfig.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/md-testvnf/scripts/sshConfig.sh')
-rw-r--r--tools/md-testvnf/scripts/sshConfig.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/md-testvnf/scripts/sshConfig.sh b/tools/md-testvnf/scripts/sshConfig.sh
new file mode 100644
index 00000000..b746cde6
--- /dev/null
+++ b/tools/md-testvnf/scripts/sshConfig.sh
@@ -0,0 +1,10 @@
+#!/bin/bash -eux
+sudo mv temp /home/testvnf/authorized_keys
+sudo mkdir /home/testvnf/.ssh
+sudo mv /home/testvnf/authorized_keys /home/testvnf/.ssh/
+sudo chmod 700 /home/testvnf/.ssh
+sudo chmod 600 /home/testvnf/.ssh/authorized_keys
+sudo chown testvnf /home/testvnf/.ssh
+sudo chown testvnf /home/testvnf/.ssh/authorized_keys
+# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
+sync \ No newline at end of file