1
0
mirror of https://git.envs.net/envs/ops.git synced 2024-06-13 20:36:38 +00:00
ops/bin/dcss
2019-10-14 22:08:03 +00:00

12 lines
251 B
Bash
Executable File

#!/bin/sh
set -e
SOURCEKEY="https://crawl.tildeverse.org/dcss.key"
MYKEY="${HOME}/.ssh/dcss.key"
if [ ! -f "$MYKEY" ]; then
mkdir -p "${HOME}/.ssh"
curl -s "$SOURCEKEY" > "$MYKEY"
chmod 600 "$MYKEY"
fi
ssh -i "$MYKEY" dcss@crawl.tildeverse.org