Sha256: 00dd07cee9f9cda5b3c01cdac1e6feea533a754df08bc5c33fbce49832107817
Contents?: true
Size: 501 Bytes
Versions: 6
Compression:
Stored size: 501 Bytes
Contents
# SSH key # $1: SSH key filename if [ -f ~/.ssh/authorized_keys ]; then echo 'authorized_keys already created' else if [ -f "$1" ]; then mkdir -p ~/.ssh cat $1 > ~/.ssh/authorized_keys rm $1 chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized_keys else echo "The public key file is not found! Try the following command:" echo "cp ~/.ssh/$1 remote" echo "If the file name found in ~/.ssh is different from \"$1\", edit attributes.yml as appropriate." exit 1 fi fi
Version data entries
6 entries across 6 versions & 1 rubygems