This repository has been archived on 2022-02-20. You can view files and clone it, but cannot push or open issues/pull-requests.
bash-shell-network/238.kebler.net/function/ssh-mounts/238

89 lines
2.9 KiB
Bash

#!/bin/bash
function mnt238gate() {
smount sysadmin@gateway.238.kebler.net:/home/sysadmin /mnt/238/gate/sysadmin -p 22
smount sysadmin@gateway.238.kebler.net:/opt /mnt/238/gate/opt -p 22
smount root@gateway.238.kebler.net:/ /mnt/238/gate/root -p 22
smount root@gateway.238.kebler.net:/etc /mnt/238/gate/etc -p 22
}
function wmnt238gate() {
smount sysadmin@238.kebler.net:/home/sysadmin /mnt/238/gate/sysadmin -p 22
smount sysadmin@238.kebler.net:/opt /mnt/238/gate/opt -p 22
smount root@238.kebler.net:/ /mnt/238/gate/root -p 22
smount root@238.kebler.net:/etc /mnt/238/gate/etc -p 22
}
function umnt238gate() {
usmount /mnt/238/gate/opt
usmount /mnt/238/gate/root
usmount /mnt/238/gate/etc
usmount /mnt/238/gate/sysadmin
}
function mntseldon() {
smount sysadmin@seldon.kebler.net:/home/sysadmin /mnt/238/seldon/sysadmin -p 22
smount sysadmin@seldon.kebler.net:/opt /mnt/238/seldon/opt -p 22
smount root@seldon.kebler.net:/ /mnt/238/seldon/root -p 22
smount root@seldon.kebler.net:/etc /mnt/238/seldon/etc -p 22
}
function umntseldon() {
usmount /mnt/238/seldon/opt
usmount /mnt/238/seldon/root
usmount /mnt/238/seldon/etc
usmount /mnt/238/seldon/sysadmin
}
function mnt238nas() {
smount sysadmin@nas.238.kebler.net:/opt /mnt/238/nas/opt -p 22
smount sysadmin@nas.238.kebler.net:/mnt/data /mnt/238/nas/data -p 22
smount sysadmin@nas.238.kebler.net:/mnt/datamirror /mnt/238/nas/datamirror -p 22
smount sysadmin@nas.kebler.net:/home/sysadmin /mnt/238/nas/sysadmin -p 22
smount root@nas.238.kebler.net:/ /mnt/238/nas/root -p 22
}
function umnt238nas() {
usmount /mnt/238/nas/opt
usmount /mnt/238/nas/data
usmount /mnt/238/nas/datamirror
usmount /mnt/238/nas/sysadmin
usmount /mnt/238/nas/root
}
function mnttrantor() {
smount sysadmin@trantor.kebler.net:/home/sysadmin /mnt/238/trantor/sysadmin -p 22
smount sysadmin@trantor.kebler.net:/opt /mnt/238/trantor/opt -p 22
smount sysadmin@trantor.kebler.net:/mnt/data /mnt/238/trantor/data -p 22
smount root@trantor.kebler.net:/ /mnt/238/trantor/root -p 22
smount sysadmin@trantor.kebler.net:/backup /mnt/238/trantor/backup -p 22
}
function umnttrantor() {
usmount /mnt/238/trantor/opt
usmount /mnt/238/trantor/root
usmount /mnt/238/trantor/data
usmount /mnt/238/trantor/sysadmin
usmount /mnt/238/trantor/backup
}
function mntwater() {
smount sysadmin@water.kebler.net:/home/sysadmin /mnt/238/water/home -p 22
smount sysadmin@water.kebler.net:/opt /mnt/238/water/opt -p 22
smount root@water.kebler.net:/ /mnt/238/water/root -p 22
}
function umntwater() {
usmount /mnt/238/water/opt
usmount /mnt/238/water/root
usmount /mnt/238/water/home
}
function mnt238hass() {
smount root@hassio.238.kebler.net:/ /mnt/238/hass -p 22 -o allow_other
}
function umnt238hass() {
usmount /mnt/238/hass
}