Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Specify interface to use (for SSH/SCP) while on command line

    Scheduled Pinned Locked Moved General pfSense Questions
    2 Posts 2 Posters 5.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jeffhammett
      last edited by

      I occasionally need to SCP some file from my pfSense to another box via an existing IPSEC tunnel that is setup on the pfSense.

      When I am on the pfSense shell and I try to SSH/SCP it seems to be using the WAN interface. Is there any way to specify the interface being used so I can connect over that IPSEC tunnel?

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        for ssh:

        -b bind_address
                    Use bind_address on the local machine as the source address of
                    the connection.  Only useful on systems with more than one
                    address.

        for scp it's trickier, but can probably be worked out with this:

        -o ssh_option
                    Can be used to pass options to ssh in the format used in
                    ssh_config(5).  This is useful for specifying options for which
                    there is no separate scp command-line flag.  For full details of
                    the options listed below, and their possible values, see
                    ssh_config(5).

        […]
                          BindAddress

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.