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/645.kebler.net/function/ssh-mounts/645

73 lines
2.0 KiB
Plaintext
Raw Normal View History

#!/bin/bash
# vpn tunnel must be operation with dns resolution at 645 dns server
function mnt645nas(){
smount sysadmin@nas.645.kebler.net:/opt /mnt/645/nas/opt -p 22
smount sysadmin@nas.645.kebler.net:/mnt/data /mnt/645/nas/data -p 22
smount sysadmin@nas.645.kebler.net:/mnt/backup /mnt/645/nas/backup -p 22
smount sysadmin@nas.645.kebler.net:/home/sysadmin /mnt/645/nas/sysadmin -p 22
smount root@nas.645.kebler.net:/ /mnt/645/nas/root -p 22
}
function umnt645nas(){
usmount /mnt/645/nas/opt
usmount /mnt/645/nas/data
usmount /mnt/645/nas/backup
usmount /mnt/645/nas/sysadmin
usmount /mnt/645/nas/root
}
function mnt645gate(){
smount root@router.645.kebler.net:/ /mnt/645/gate -p 22
}
function umnt645gate(){
usmount /mnt/645/gate
}
function mntnadal(){
smount sysadmin@nadal.645.kebler.net:/opt /mnt/645/nadal/opt -p 22
smount sysadmin@nadal.645.kebler.net:/home/sysadmin /mnt/645/nadal/sysadmin -p 22
smount sysadmin@nadal.645.kebler.net:/mnt/data /mnt/645/nadal/data -p 22
smount root@nadal.645.kebler.net:/ /mnt/645/nadal/root -p 22
}
function umntnadal(){
usmount /mnt/645/nadal/opt
usmount /mnt/645/nadal/sysadmin
usmount /mnt/645/nadal/data
usmount /mnt/645/nadal/root
}
function mnt645hass(){
smount root@hassio.645.kebler.net:/ /mnt/645/hass -p 22
}
function umnt645hass(){
usmount /mnt/645/hass
}
# via NAT at WAN interface (mostly to support old gateway)
function mnt645gatew(){
smount sysadmin@645.kebler.net:/opt /mnt/645/wgate/opt -p 22
smount sysadmin@645.kebler.net:/home/sysadmin /mnt/645/wgate/sysadmin -p 22
smount root@645.kebler.net:/ /mnt/645/wgate/root -p 22
}
function umnt645gatew(){
usmount /mnt/645/wgate/opt
usmount /mnt/645/wgate/sysadmin
usmount /mnt/645/wgate/root
}
function mnt645nasw(){
smount sysadmin@645.kebler.net:/opt /mnt/645/nas/opt -p 322
smount sysadmin@645.kebler.net:/mnt/data /mnt/645/nas/data -p 322
smount sysadmin@645.kebler.net:/mnt/backup /mnt/645/nas/backup -p 322
smount sysadmin@645.kebler.net:/home/sysadmin /mnt/645/nas/sysadmin -p 322
smount root@645.kebler.net:/ /mnt/645/nas/root -p 322
}