#!/bin/bash

echo '******************************************************'
echo 'Configuring ssh+sudo for student user'
echo '******************************************************'

sudo mkdir /home/student/.ssh
sudo bash -c 'cat << EOF >>/home/student/.ssh/authorized_keys
ssh-rsa [payload removed: 716 characters] student@win10.aud507.local
EOF'

sudo chown -R student:student /home/student