updated dcss connect script to check sshfp recs
This commit is contained in:
parent
c1e8337b49
commit
fbfda81ea1
17
index.html
17
index.html
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue