I recently started using a VPN server on my laptop. Everything now routes through it, including my SSHFS mounts and SSH shell to/from my FTP server. Because of that, it is now very slow and unresponsive.

Is it possible to still use the VPN "globally" with the exception of all SSH related tasks? (Only the laptop uses the VPN connection, not the FTP server)

Arch Linux.

  • This is becoming an issue for me with working from home along with every other employee during COVID19! Apr 3, 2020 at 19:38

1 Answer 1


There is BindAddress option, which will allow you to not to go through the VPN network, even if it is set as a default one.

It can be set in configuration file ~/.ssh/config as

Host your-non-vpn-host
  BindAddress your-local-ip-non-vpn

Or just ad-hoc on commandline using -oBindAddress=your-local-ip-non-vpn switch to SSH/SFTP/SSHFS.

And how to find your your-local-ip-non-vpn? List your local IP addresses using ip address show and select the one that is showed next to your "normal" network interface (not the one next to your VPN interface).

  • Thanks for answering. This is for sshfs?
    – E. l4d3
    Apr 24, 2017 at 12:38
  • Yes. It should work also for sshfs.
    – Jakuje
    Apr 24, 2017 at 12:39
  • Sorry. Add the configuration file. The inline version using -o should be accepted also by sshfs.
    – Jakuje
    Apr 24, 2017 at 12:41
  • So 'your-non-vpn-host' is the server's WAN address, and 'your-local-ip-non-vpn' is my local network IP?
    – E. l4d3
    Apr 24, 2017 at 13:16
  • 1
    @SridharSarnobat ifconfig will list you network interfaces. It depends if you are connected through ethernet or wifi. In the first case, the interface will be something like eth0, for wifi something like wlan0.
    – Jakuje
    Apr 4, 2020 at 7:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.