[Bug 1916] New: Wish: support multiple alternative hostnames for a given host alias (useful with NAT)

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Jun 28 04:33:44 EST 2011


             Bug #: 1916
           Summary: Wish: support multiple alternative hostnames for a
                    given host alias (useful with NAT)
    Classification: Unclassified
           Product: Portable OpenSSH
           Version: 5.8p2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ssh
        AssignedTo: unassigned-bugs at mindrot.org
        ReportedBy: openssh at richardneill.org

Many servers have different IP addresses, and different canonical DNS
entries, depending on which side of the (NAT) firewall you are
connecting from. It would be nice to have a single Host entry in the
ssh/config file that would cope with multiple hostname alternatives,
and try first one, then the other.


  Host example1
     Hostname  example1
     Hostname  example1.no-ip.org
     Port 2222

What this should do is allow me to type "ssh example1" and then:

* If I am at home, inside my NAT firewall, it should try to connect to
the machine named "example1" (according to the DNS entry in my
broadband router). 

* If I am away at work, it should connect to the FQDN at no-ip.org, on
the port 2222.

The reason this is useful is when setting up connections for less
technical users. For example, having done this, it's then possible to
enable, say, SFTP within Nautilus, and have it work whether the laptop
is inside or outside the home network. Otherwise, one must have
multiple different entries that are context-dependent.

Thanks for your consideration.

Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list