about summary refs log blame commit diff stats
path: root/bin/dcss
blob: 3ca86fb594ad77e7cc5eaf77e5de16bcc0a4948c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                 
#!/bin/sh

# downloads the ssh private key for 
# user dcss@crawl.tildeverse.org
# if it doesn't already exist
# then connects

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