Skip to content

Commit

Permalink
Make sure that user owns the ssh directory and keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Packard committed Aug 18, 2016
1 parent 84cfffe commit dd0061d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http/ks-ext4.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ mkdir --mode=700 /home/centos/.ssh
cat << EOF > /home/centos/.ssh/authorized_keys
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC0F2Y68rs0DPofa9ZCJYxx9FG6Lzk+szeI6/c2P4C3yNWy1QvPDfUzFXGgPnb/O0EkI6s4qQ8Nt16GAfwdC4xvrZG5lpn++vBwEb4CxpF+23TsmQCi+DJjNgH4+XfBlGqplcjxJuMOrKrOO+wGuc7yetJ32b2wMNJUv0ijWpCiFp8fhs0a5+q4tq+6Q7LBlaIFTvjTP+YKh7JxAzG492m8TkbVQGnPpnTFI5OF5Q6t0Yqn87RZvVRvuU+jXXxSH7EHWbSpkXveElCC53o3MtunwTYtSkGDkAIF92Iw7eEX9d6hVsO4OXZPIgZn0oWNQQh8yyDYHB+4XQa1mQD8TS8f centos@centos.local

chown -R centos /home/centos/.ssh

EOF

yum -y update
Expand Down

0 comments on commit dd0061d

Please sign in to comment.