updated dcss connect script to check sshfp recs

This commit is contained in:
ahriman 2020-06-11 13:32:12 -04:00
parent c1e8337b49
commit fbfda81ea1
1 changed files with 17 additions and 0 deletions

View File

@ -36,6 +36,22 @@ _/ |_|__| | __| _/____ ________________ __ _ _| |
<p>Run a tildeverse server and want to easily provide console access to this DCSS instance for your users? Create a file at <code>/usr/local/bin/dcss</code> with the following contents:</p>
<div id="codeblock">
<pre>#!/bin/sh
# 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
fi
exec ssh \
-i ~/.ssh/dcss \
-o VerifyHostKeyDNS=yes \
dcss@crawl.tildeverse.org</pre>
<!--
<pre>#!/bin/sh
set -e
SOURCEKEY="https://crawl.tildeverse.org/dcss.key"
@ -46,6 +62,7 @@ if [ ! -f "$MYKEY" ]; then
chmod 600 "$MYKEY"
fi
ssh -i "$MYKEY" dcss@crawl.tildeverse.org</pre>
-->
</div>
</div>
</div>