Re: URL path match in ssh config

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



середа, 10-гру-2014 16:53:14 Ben Lindstrom написано:
> Why not do:
> 
> host gitwork
> 	HostName gitorious.org
> 	User git
> 	IdentityFile ~/.ssh/foo.key
> 
> 
> host githome
> 	HostName gitorious.org
> 	User git
> 	IdentityFile ~/.ssh/bar.key
> 
> 
> As "Match" is a server side feature not a client feature.   And the above
> would mean you'd do:
> 
> $ ssh gitwork:foo/foo.git
> or
> $ ssh githome:bar/bar.git
> 
> I do this trick a lot when I have the same machine with multiple login
> (think one web server with multi-virtual hosts all with different
> chroot/sftp locations).
> 
> - Ben

Thank you! That's what I need. BTW is it possible to make configuration without hostname modification?
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev





[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux