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/lights

62 lines
1.8 KiB
Bash

#!/bin/bash
#hosts lights and lightsi are ssh config entries
function mntlights(){
smount sysadmin@lights:/home/sysadmin /mnt/lights/controller/sysadmin -p 22
smount sysadmin@lights:/opt /mnt/lights/controller/opt -p 22
smount root@lights:/ /mnt/lights/controller/root -p 22
}
function mntlightsi(){
smount sysadmin@lightsi:/home/sysadmin /mnt/lights/controller/sysadmin -p 22
smount sysadmin@lightsi:/opt /mnt/lights/controller/opt -p 22
smount root@lightsi:/ /mnt/lights/controller/root -p 22
}
function umntlights(){
usmount /mnt/lights/controller/opt
usmount /mnt/lights/controller/root
usmount /mnt/lights/controller/sysadmin
}
# via lights firewall at port 222
function mntrelays(){
smount sysadmin@lights:/home/sysadmin /mnt/lights/relays/sysadmin -p 222
smount sysadmin@lights:/opt /mnt/lights/relays/opt -p 222
smount root@lights:/ /mnt/lights/relays/root -p 222
}
function mntrelaysi(){
smount sysadmin@rlightsi:/home/sysadmin /mnt/lights/relays/sysadmin -p 22
smount sysadmin@rlightsi:/opt /mnt/lights/relays/opt -p 22
smount root@rlightsi:/ /mnt/lights/relays/root -p 22
}
function umntrelays(){
usmount /mnt/lights/relays/opt
usmount /mnt/lights/relays/root
usmount /mnt/lights/relays/sysadmin
}
# via lights firewall at port 122
function mntswitches(){
smount sysadmin@lights:/home/sysadmin /mnt/lights/switches/sysadmin -p 122
smount sysadmin@lights:/opt /mnt/lights/switches/opt -p 122
smount root@lights:/ /mnt/lights/switches/root -p 122
}
function mntswitchesi(){
smount sysadmin@slightsi:/home/sysadmin /mnt/lights/switches/sysadmin -p 22
smount sysadmin@slightsi:/opt /mnt/lights/switches/opt -p 22
smount root@slightsi:/ /mnt/lights/switches/root -p 22
}
function umntswitches(){
usmount /mnt/lights/switches/opt
usmount /mnt/lights/switches/root
usmount /mnt/lights/switches/sysadmin
}