Initial commit

This commit is contained in:
2021-10-16 15:06:07 -04:00
parent 9a839d6530
commit b2d495dadc
13 changed files with 663 additions and 0 deletions

18
script-user-register Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
# This script will register a new remote user for the lab workstioastn
# Copyright 2021 Bryan C. Roessler
[[ $# -eq 0 ]] && remote_host="hartmanlab.genetics.uab.edu"
[[ $# -eq 1 ]] && remote_host="$1"
[[ $# -gt 1 ]] && echo "Only one argument permitted" && exit 1
#remote_host="hartmanlab.genetics.uab.edu"
# generate local key if not available
if [[ -x $(command -v ssh-copy-id) ]]; then
ask_ok "Copy public key to $remote_host?"
ssh-copy-id "$remote_host"
fi