Thanks for that. I've not identified the issue fully, but enough to get it running by explicitly using admin on a lower port - it has at least allowed me to try the code out!
I got enough running to know that I need to fiddle with my CustomShellCommand that implements SessionAware and Command. Is there a simple way to set up a command like this? I was wondering if I can use the InvertedShellWrapper or if those thoughts mean I am going off at a tangent!? I suppose I need an implementation of Command to be able to check the session, but don't know if that means that I do need to completely write my own streams and executor. Do you have nay further tips? I've definitely proved what you have described though - I can capture the session and make a decision, I just need to either write my command wrappers more nicely or find a shortcut. Thanks again for your help. Regards, Adam. On Sat, 4 May 2019 at 15:54, Lyor Goldstein <[email protected]> wrote: > >> I've ran into an issue whereby my SSHD cannot bind to any port! > >> Have you by chance ever seen this issue before? > > No, does not ring a bell > > >> I don't believe for one moment it is the mina-sshd code > > Neither do I > > >> Hopefully it is something obvious that I'll spot soon. > > Perhaps some kind of security related issue - I am not a Windows guru, but > I do seem to remember that (like Linux) you can impose restrictions on who > can bind to which ports. Perhaps you need to grant the java.exe executable > correct access rights. I do remember that every time I install a new Java > version on a Windows machine and try to run it I get a pop-up window > asking me whether I wish to grant access to the network to java.exe ... >
