Skip to content
Snippets Groups Projects
Commit f70a0342 authored by ale's avatar ale
Browse files

Create SSH config dir if not exists

parent ff4fecd9
Branches
No related tags found
No related merge requests found
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
key_dir="${BUILD_DIR}/ssh" key_dir="${BUILD_DIR}/ssh"
key_path="${key_dir}/vmkey" key_path="${key_dir}/vmkey"
config_path="/root/.ssh/config" config_dir="/root/.ssh"
config_path="${config_dir}/config"
set -e set -e
...@@ -20,6 +21,8 @@ fi ...@@ -20,6 +21,8 @@ fi
# Configure SSH to use it for the 10/8 network # Configure SSH to use it for the 10/8 network
# (the network used by vmine). # (the network used by vmine).
mkdir -p "${config_dir}"
chmod 0700 "${config_dir}"
cat >> "${config_path}" <<EOF cat >> "${config_path}" <<EOF
Host 10.* Host 10.*
User root User root
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment