Bug 2840 - ssh: Include directive not supported as a command-line option
Summary: ssh: Include directive not supported as a command-line option
Status: CLOSED FIXED
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 7.6p1
Hardware: Other Linux
: P5 enhancement
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks: V_7_8
  Show dependency treegraph
 
Reported: 2018-03-17 00:02 AEDT by pva
Modified: 2021-04-23 14:53 AEST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pva 2018-03-17 00:02:35 AEDT
Whenever I try to use `ssh -o Include='/some/path' host` I receive the error:

Include directive not supported as a command-line option

Yet man ssh states that Include is supported Value for -o command line option. Either manual page or ssh needs to be fixed.
Comment 1 Jakub Jelen 2018-03-17 03:17:59 AEDT
This is probably documentation issue. The code is made that way, the include directive is not supported on command-line (there you can use -F switch for specific configuration file).

The following patch should make things clear:

diff --git a/ssh.1 b/ssh.1
index b4078525..dfad2927 100644
--- a/ssh.1
+++ b/ssh.1
@@ -499,7 +499,6 @@ For full details of the options listed below, and their possible values, see
 .It IdentitiesOnly
 .It IdentityAgent
 .It IdentityFile
-.It Include
 .It IPQoS
 .It KbdInteractiveAuthentication
 .It KbdInteractiveDevices
Comment 2 Damien Miller 2018-04-06 13:34:59 AEST
Applied - thanks
Comment 3 Damien Miller 2021-04-23 14:53:10 AEST
closing resolved bugs as of 8.6p1 release