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

34 lines
1.1 KiB
Plaintext
Raw Normal View History

#!/bin/bash
function mntccadmin() {
smount sysadmin@admin.cc.gpccaor.net:/home/sysadmin /mnt/gpcca/admin/sysadmin -p 22
smount sysadmin@admin.cc.gpccaor.net:/opt /mnt/gpcca/admin/opt -p 22
smount sysadmin@admin.cc.gpccaor.net:/data /mnt/gpcca/admin/data -p 22
smount root@admin.cc.gpccaor.net:/ /mnt/gpcca/admin/root -p 22
smount root@admin.cc.gpccaor.net:/etc /mnt/gpcca/admin/etc -p 22
}
function umntccadmin() {
usmount /mnt/gpcca/admin/opt
usmount /mnt/gpcca/admin/data
usmount /mnt/gpcca/admin/root
usmount /mnt/gpcca/admin/etc
usmount /mnt/gpcca/admin/sysadmin
}
function mntccav() {
smount sysadmin@av.cc.gpccaor.net:/home/sysadmin /mnt/gpcca/av/sysadmin -p 22
smount sysadmin@av.cc.gpccaor.net:/opt /mnt/gpcca/av/opt -p 22
smount sysadmin@av.cc.gpccaor.net:/data /mnt/gpcca/av/data -p 22
smount root@av.cc.gpccaor.net:/ /mnt/gpcca/av/root -p 22
smount root@av.cc.gpccaor.net:/etc /mnt/gpcca/av/etc -p 22
}
function umntccav() {
usmount /mnt/gpcca/av/opt
usmount /mnt/gpcca/av/data
usmount /mnt/gpcca/av/root
usmount /mnt/gpcca/av/etc
usmount /mnt/gpcca/av/sysadmin
}