Sometimes, when the computer has two network cards; free internet connection a network card, a network card to connect charges. So that when you want to use the free internet to establish a connection with the remote server, using the scp command such as ssh tunnels or the like transferring large files. At this time you need to specify a particular special card to establish a connection.
ssh has an option to bind to a specific interface we use to view the manual can see man ssh:
-B bind_interface Bind to the address of bind_interface before attempting to connect to the destination host. This is only useful on systems with more than one address.
Visible, using ssh -B option, you can specify a particular card;
I successfully tested in a lab environment. If you have any questions, please leave a message discussion.
Kept up to date, please indicate the source. More blog on networks and systems, please pay attention cnblogs.com/xuyaowen