Skip to content

Commit

Permalink
Setting the right permission for ssh config (#7367)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitsub2 authored Mar 10, 2024
1 parent 600b13c commit 92a62fb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/content/en/docs/osmgmt/artifacts.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="RHEL" lang="bash" >}}
Expand All @@ -358,6 +359,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="Amazon Linux 2" lang="bash" >}}
Expand All @@ -367,6 +369,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< /tabpane >}}
Expand Down Expand Up @@ -535,6 +538,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="RHEL" lang="bash" >}}
Expand All @@ -547,6 +551,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="Amazon Linux" lang="bash" >}}
Expand All @@ -559,6 +564,7 @@ These steps use `image-builder` to create an Ubuntu-based or RHEL-based image fo
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< /tabpane >}}
Expand Down Expand Up @@ -676,6 +682,7 @@ These steps use `image-builder` to create a RHEL-based image for CloudStack. Bef
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="RHEL" lang="bash" >}}
Expand All @@ -688,6 +695,7 @@ These steps use `image-builder` to create a RHEL-based image for CloudStack. Bef
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="Amazon Linux" lang="bash" >}}
Expand All @@ -700,6 +708,7 @@ These steps use `image-builder` to create a RHEL-based image for CloudStack. Bef
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< /tabpane >}}
Expand Down Expand Up @@ -783,6 +792,7 @@ These steps use `image-builder` to create an Ubuntu-based Amazon Machine Image (
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="RHEL" lang="bash" >}}
Expand All @@ -792,6 +802,7 @@ These steps use `image-builder` to create an Ubuntu-based Amazon Machine Image (
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="Amazon Linux 2" lang="bash" >}}
Expand All @@ -801,6 +812,7 @@ These steps use `image-builder` to create an Ubuntu-based Amazon Machine Image (
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< /tabpane >}}
Expand Down Expand Up @@ -939,6 +951,7 @@ These steps use `image-builder` to create a Ubuntu-based image for Nutanix AHV a
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="RHEL" lang="bash" >}}
Expand All @@ -948,6 +961,7 @@ These steps use `image-builder` to create a Ubuntu-based image for Nutanix AHV a
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< tab header="Amazon Linux 2" lang="bash" >}}
Expand All @@ -957,6 +971,7 @@ These steps use `image-builder` to create a Ubuntu-based image for Nutanix AHV a
mkdir -p /home/$USER/.ssh
echo "HostKeyAlgorithms +ssh-rsa" >> /home/$USER/.ssh/config
echo "PubkeyAcceptedKeyTypes +ssh-rsa" >> /home/$USER/.ssh/config
sudo chmod 600 /home/$USER/.ssh/config
{{< /tab >}}

{{< /tabpane >}}
Expand Down

0 comments on commit 92a62fb

Please sign in to comment.