Skip to content
Permalink
Browse files

Make sure that user owns the ssh directory and keys.

  • Loading branch information
Mason Packard
Mason Packard committed Aug 18, 2016
1 parent 84cfffe commit dd0061d810873f93a474d16f9721ce3df34f6182
Showing with 2 additions and 0 deletions.
  1. +2 −0 http/ks-ext4.cfg
@@ -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

0 comments on commit dd0061d

Please sign in to comment.
You can’t perform that action at this time.