Sha256: 7a111242595ce55ad5b4a7a9e7f0733aae6fddd4accb5482c53d2b60ee32c1d3

Contents?: true

Size: 558 Bytes

Versions: 792

Compression:

Stored size: 558 Bytes

Contents

#!/bin/bash --login
source /etc/profile.d/globals.sh

for user in pwnadmin admin; do
  if [[ ! -d "/home/${user}/.ssh" ]]; then
    sudo mkdir -p /home/$user/.ssh
    sudo chmod 0700 /home/$user/.ssh
    sudo touch /home/$user/.ssh/authorized_keys
    sudo chmod 0600 /home/$user/.ssh/authorized_keys
    sudo chown -R $user:$user /home/$user/.ssh
  fi

  $screen_cmd "wget --no-check-certificate https://raw.githubusercontent.com/hashicorp/vagrant/master/keys/vagrant.pub -O ->> /home/${user}/.ssh/authorized_keys ${assess_update_errors}"
  grok_error
done

Version data entries

792 entries across 792 versions & 1 rubygems

Version Path
pwn-0.5.172 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.171 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.170 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.169 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.168 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.167 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.166 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.165 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.164 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.163 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.162 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.161 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.160 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.159 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.158 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.157 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.156 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.155 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.154 packer/provisioners/install_vagrant_ssh_key.sh
pwn-0.5.153 packer/provisioners/install_vagrant_ssh_key.sh