[Bug 351] New: wishlist: aliases in .ssh/config

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Jul 11 08:14:32 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=351

           Summary: wishlist: aliases in .ssh/config
           Product: Portable OpenSSH
           Version: -current
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: ssh
        AssignedTo: openssh-unix-dev at mindrot.org
        ReportedBy: hssnepole at tigerfood.org


The problem:

I've got access to several domains that get different ssh configuration options,
such as
   Host *.someplace.com
     User felix
     ForwardX11 yes
   Host *.anotherplace.com
     User flee
     Spandex yes
     [etc...]

which is simple enough, but then there are several hosts within each domain that
I'd like to refer to with short aliases, which means adding many lines like
   Host z
     Hostname zymurgy.anotherplace.com

which is also simple enough, but then each of these has to include all the
options that I've specified for *.anotherplace.com too.  This is more awkward
and messy than I think it should be.

Potential solution 1:

I'd like a new config directive like "HostAlias X Y" which would be something
like this: When I do "ssh z" and it sees the .ssh/config line
     HostAlias z zymurgy.anotherplace.com
then it replaces its idea of the hostname with zymurgy.anotherplace.com and then
continues scanning the config file for options pertaining to that.

Potential solution 2:

Add a new configuration directive "SeeAlsoHost X".  When ssh processes that
directive, it re-reads .ssh/config for settings that pertain to host X.  This is
more complicated than solution 1, but more general and maybe more useful.

I haven't looked at implementing either of these.  If nobody else does, I might
get to it in a couple months.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list