I have a particular nice system that communicte through different DSL routers for backups. The problem is the remote is reachable through my default gateway however for security i need to controll the physical interface/ip it uses to communicate with. I also need to select this path at will.
It's base is ssh - specifically scp.
I can ping through these interfces with
or
(-I interface address = Set source address to specified interface address. Argument may be numeric IP address or name of device. When pinging IPv6 link-local address this option is required.)
My requirement is to make an SCP / SSH connection but selectively force it through an particular interface/IP router.
Does anyone have an Elagant way?
My Scripts is all
BASH