mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 07:37:01 +08:00
57 lines
1.0 KiB
Bash
57 lines
1.0 KiB
Bash
#!/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}
|
|
RET_USERNAME=${RET_USERNAME:-ssh}
|
|
RET_TRUST_SERVER=1
|
|
}
|
|
|
|
# domains
|
|
.domain() {
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
}
|
|
|
|
i.domain() {
|
|
RET_HOSTNAME=$host.ibd.ink
|
|
RET_PORT=${RET_PORT:-12022}
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
RET_TRUST_SERVER=1
|
|
}
|
|
|
|
42.domain() {
|
|
RET_HOSTNAME=$host.i.bd.dn42
|
|
RET_PORT=${RET_PORT:-12022}
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
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}
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
RET_JUMP_SERVER="ssh@nasp.fit:36022"
|
|
RET_TRUST_SERVER=1
|
|
}
|
|
|
|
default.domain() {
|
|
i.domain
|
|
}
|