Instantly share code, notes, and snippets.

Embed
What would you like to do?
isucon_addkey.sh
#!/bin/bash
set -eux
set -o pipefail
user=$1
# for ubuntu
adduser ${user}
gpasswd -a ${user} wheel
sudo -u ${user} mkdir /home/${user}/.ssh
curl -f https://github.com/${user}.keys | tee -a /home/${user}/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment