No that's not supported. I think the correct way would be for the client to send arguments through the streams that are used to communicate with the subsystem.
2015-02-10 22:50 GMT+01:00 Wen, Bo <[email protected]>: > Hi, > > Is there a way for SSHD server subsystem to support extra parameters? For > example, from SSH client: > > % ssh user@localhost -s netconf 10.1.1.1 > > Expecting: "netconf" is a subsystem name and "10.1.1.1" is a parameter. > So, is there a way to pass in extra parameters to the subsystem? > > Currently it seems the whole string "netconf 10.1.1.1" is treated as a > subsystem name, and the match is via "equal()" > > ChannelSession.handleSubSystem() > NamedFactory.Utils.create() > If (f.getName().equals(name)) .... > > Anyway I can override this equals() matching to have my own matching? Or > any other way? > > Thanks in advance! > Bo > > > > >
