Bug 2789

Summary: Manpage is not clear on how to use Include keyword
Product: Portable OpenSSH Reporter: Stefan Midjich <swehack>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED INVALID    
Severity: trivial    
Priority: P5    
Version: 7.5p1   
Hardware: All   
OS: Linux   

Description Stefan Midjich 2017-10-04 23:19:33 AEDT
I noticed by accident that I could not use the Include keyword in the middle of my ssh_config file, between other Host blocks. (Not inside a Host/Match block).

I had to move it up to the start of my file, before all other Host blocks, before it worked.
Comment 1 Stefan Midjich 2017-10-04 23:24:23 AEDT
This can likely be closed because I discovered later, too late, that Host/Match blocks are terminated by the next Host/Match block.

So when I tried to put an Include statement in the middle of my file it was not "standalone", it was in fact inside the last Host block.

Moving it up above Host blocks made it "standalone". 

This is not clear unless you read the Host/Match block manpage sections.
Comment 2 Damien Miller 2018-04-06 12:26:46 AEST
Close all resolved bugs after release of OpenSSH 7.7.