Initial commit
This commit is contained in:
18
script-user-register
Normal file
18
script-user-register
Normal 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
|
||||
Reference in New Issue
Block a user