mirror of
https://git.envs.net/envs/ops.git
synced 2024-06-22 16:47:07 +00:00
12 lines
251 B
Plaintext
12 lines
251 B
Plaintext
|
#!/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
|