about summary refs log tree commit diff stats
path: root/bin/dcss
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dcss')
-rwxr-xr-xbin/dcss15
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/dcss b/bin/dcss
new file mode 100755
index 0000000..3ca86fb
--- /dev/null
+++ b/bin/dcss
@@ -0,0 +1,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