diff --git a/riot-config.sh b/riot-config.sh index 88a092a..604d584 100644 --- a/riot-config.sh +++ b/riot-config.sh @@ -1,13 +1,6 @@ #!/bin/false # remotes -j.remote() { - remote=ssh.beardic.cn - RET_PORT=${RET_PORT:-24022} - RET_USERNAME=${RET_USERNAME:-root} - RET_TRUST_SERVER=1 -} - nasp.remote() { remote=nasp.fit RET_PORT=${RET_PORT:-36022} @@ -19,6 +12,7 @@ nasp.remote() { .domain() { RET_USERNAME=${RET_USERNAME:-root} RET_PORT=${RET_PORT:-12022} + RET_HOSTNAME=${remote%.} } dxng.domain() { @@ -42,15 +36,6 @@ i.domain() { RET_TRUST_SERVER=1 } -x.domain() { - RET_HOSTNAME=ssh.beardic.cn - local tmp=$(sha256sum <<< "$host" | tr -cd "[:digit:]") - tmp=${tmp:0:4} - RET_PORT=$((10#$tmp+36000)) - RET_USERNAME=root - RET_TRUST_SERVER=1 -} - nasp.domain() { RET_HOSTNAME=$host RET_PORT=${RET_PORT:-12022}