site/dcss.sh

16 lines
346 B
Bash
Raw Permalink Normal View History

2018-12-25 07:17:21 +00:00
#!/bin/sh
2020-06-11 18:00:37 +00:00
# get ssh key
if [ ! -f ~/.ssh/dcss ]; then
umask 077
curl -so ~/.ssh/dcss https://crawl.tildeverse.org/dcss.key
# suppress a warning about the public key format
umask 022
ssh-keygen -f ~/.ssh/dcss -y > ~/.ssh/dcss.pub
2018-12-25 07:17:21 +00:00
fi
2020-06-11 18:00:37 +00:00
exec ssh \
-i ~/.ssh/dcss \
-o VerifyHostKeyDNS=yes \
dcss@crawl.tildeverse.org