2023-12-06 21:52:54 +08:00
|
|
|
#!/bin/false
|
|
|
|
|
|
|
|
# remotes
|
|
|
|
j.remote() {
|
2024-01-15 20:11:54 +08:00
|
|
|
remote=ssh.beardic.cn
|
|
|
|
RET_PORT=${RET_PORT:-24022}
|
2023-12-06 21:52:54 +08:00
|
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
|
|
RET_TRUST_SERVER=1
|
|
|
|
}
|
|
|
|
|
2023-12-07 14:48:27 +08:00
|
|
|
nasp.remote() {
|
|
|
|
remote=nasp.ob.ac.cn
|
|
|
|
RET_PORT=${RET_PORT:-36022}
|
|
|
|
RET_USERNAME=${RET_USERNAME:-ssh}
|
|
|
|
RET_TRUST_SERVER=1
|
|
|
|
}
|
|
|
|
|
2023-12-06 21:52:54 +08:00
|
|
|
# domains
|
2023-12-07 14:48:27 +08:00
|
|
|
.domain() {
|
|
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
|
|
}
|
|
|
|
|
2023-12-06 21:52:54 +08:00
|
|
|
i.domain() {
|
|
|
|
RET_HOSTNAME=$host.ibd.ink
|
|
|
|
RET_PORT=${RET_PORT:-12022}
|
|
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
|
|
RET_TRUST_SERVER=1
|
|
|
|
}
|
|
|
|
|
2024-01-04 22:00:22 +08:00
|
|
|
42.domain() {
|
|
|
|
RET_HOSTNAME=$host.i.bd.dn42
|
|
|
|
RET_PORT=${RET_PORT:-12022}
|
|
|
|
RET_USERNAME=${RET_USERNAME:-root}
|
|
|
|
RET_TRUST_SERVER=1
|
|
|
|
}
|
|
|
|
|
2023-12-06 21:52:54 +08:00
|
|
|
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:-dictxiong}
|
|
|
|
RET_JUMP_SERVER="ssh@nasp.ob.ac.cn:36022"
|
|
|
|
RET_TRUST_SERVER=1
|
|
|
|
}
|
|
|
|
|
|
|
|
default.domain() {
|
|
|
|
i.domain
|
|
|
|
}
|